Compare commits

...

909 Commits

Author SHA1 Message Date
Nuno 9e3e56b50b Merge remote-tracking branch 'origin/53-setting-to-change-tooltip-opacity' into main/yubo-dev 3 years ago
Nuno 224c14cfef Merge remote-tracking branch 'origin/fix-media-player-playlist-limit' into main/yubo-dev 3 years ago
Nuno fbf842c75a Merge remote-tracking branch 'origin/feature/split-action-bar-1-and-2' into main/yubo-dev 3 years ago
nimetu 80e556ca8a Limit media playlist using list maxelements property 3 years ago
bensaine 85a8c956fb fixes 3 years ago
bensaine 1c65914b10 fix: tooltip opacity 3 years ago
Nuno 56d9c5fd04 Merge branch '47-hide-quality-indicator-on-item-if-equal-to-1' into main/yubo-dev 3 years ago
Nuno 00f02e1603 Added 3 years ago
Nuno 2817c8d823 Merge remote-tracking branch 'origin/52-add-escape-shortcut-to-open-quit-menu' into main/yubo-dev 3 years ago
Nuno 1fc8cabb22 Merge remote-tracking branch 'origin/51-shift-enter-at-merchant-no-longer-sells-to-merchant' into main/yubo-dev 3 years ago
Nuno a5635ba27d Merge remote-tracking branch 'origin/18-enchant-icon-does-not-properly-update-on-weapon' into main/yubo-dev 3 years ago
bensaine ddb4cce712 initial draft 3 years ago
nimetu 1725878201 Improve item icon buff update 3 years ago
bensaine ee699078a9 change: way of checking if shift is pushed 3 years ago
bensaine caeccac5d6 add: open quit dialog on escape
if no modal, no keyboard capture active, no escapable window active, open quit dialog
3 years ago
Nuno 929a126155 Merge remote-tracking branch 'origin/60-weapon-does-not-show-in-both-hands-on-load-in' into main/yubo-dev 3 years ago
nimetu d453ba89b2 Fix Weapon does not show in both hands on load-in 3 years ago
Nuno eda9f224bc Merge remote-tracking branch 'origin/10-use-item-shortcut-client' into main/yubo-dev 3 years ago
Nuno 9fc091f99b Add macro checks for enable code for old gcc version (< 40800) 3 years ago
Nuno 3069d648e6 Merge branch 'server/yubo-dev' into main/yubo-dev 3 years ago
Nuno 7129a8fa5f Add macro checks for enable code for old gcc version (< 40800) 3 years ago
Nuno ab4aa7487c Revert "Merge branch 'server/yubo-dev' into main/yubo-dev"
This reverts commit a4d92c34bd.
3 years ago
Nuno a4d92c34bd Merge branch 'server/yubo-dev' into main/yubo-dev 3 years ago
Nuno 47d3a0bb8a Merge remote-tracking branch 'origin/10-use-item-shortcut-client' into server/yubo-dev 3 years ago
bensaine df24bf6129 fixes 3 years ago
Nuno 9517cc7384 Merge remote-tracking branch 'origin/10-use-item-shortcut-client' into server/yubo-dev 3 years ago
bensaine fe4c39b593 move hotbar index 3 years ago
nimetu 3fc85ea291 Split action bar 1 and 2 into separate sets 3 years ago
bensaine 7aa639138a revert _IsHotbarSlot 3 years ago
Nuno b3b473d671 Merge branch 'main/yubo-dev' into server/yubo-dev 3 years ago
Nuno 66980e5002 ? 3 years ago
Nuno 96c0da8efd Merge branch 'main/atys-live' into main/yubo-dev 3 years ago
Nuno 52c4b07bd5 Merge branch '10-use-item-shortcut-client' into main/yubo-dev 3 years ago
bensaine e7dec3d6b0 add: INVENTORIES:hotbar 3 years ago
Nuno 45518dd32c Merge branch 'main/gingo-test' into main/atys-live 3 years ago
Nuno ec1b58713e Merge branch 'main/gingo-test' into main/atys-live 3 years ago
bensaine b6b67f7482 initial draft 3 years ago
nimetu c4e48dc586 Update hunter to 0.23.321 3 years ago
Nuno 0258f07880 Apply WG changes, remove core4 changes (need be reapplied later) 3 years ago
Nuno d0b82b596d Merge branch 'feature/merge-from-ryzom-data' into main/yubo-dev 3 years ago
Nuno d57148e824 Reformat xml using tidy_config.txt 3 years ago
Nuno 190a81c9ff Merge branch 'main/gingo-test' into main/atys-live 3 years ago
Nuno 053620e3ac Merge branch 'main/gingo-test' into main/yubo-dev 3 years ago
Nuno b833b26c4e Merge branch 'main/gingo-test' into main/yubo-dev 3 years ago
Nuno 96fe140ded Merge branch 'server/gingo-test' into server/yubo-dev 3 years ago
Nuno 858cf091aa Merge branch 'main/gingo-test' into server/gingo-test 3 years ago
Nuno 7120bd6583 Merge branch 'main/gingo-test' into server/gingo-test 3 years ago
nimetu dca90ab3d6 Hide 1x quantity for equipable items, dynamic buff icon placement 3 years ago
Nuno 3868876ab4 Merge branch 'main/gingo-test' into main/atys-live 3 years ago
Nuno 21db256a9a Merge branch '38-add-smooth-resizing-of-entitie-when-vpb-are-changed' into main/yubo-dev 3 years ago
Nuno 5c264fad52 Add smooth resizing of entitie when VPB are changed (wip) 3 years ago
Nuno 908ef24b6b Merge branch '37-remove-open-menu-option-from-scroll-items-when-item-use-a-scroll-label' into main/yubo-dev 3 years ago
Nuno 4d1eca1a65 Remove Open menu option from scroll items when item use a Scroll.Label 3 years ago
Nuno fc32731142 Merge branch '36-add-ability-to-have-translated-titles-with-untraslated-fields' into main/yubo-dev 3 years ago
Nuno 202cfd8aab Merge branch 'main/atys-live' into main/yubo-dev 3 years ago
Nuno 73ec298025 Add ability to have translated titles with untraslated fields 3 years ago
Nuno aeb1dc1737 Fix issues with old gcc compiler (required by forge server) 3 years ago
Nuno 75a84c0e14 Update common from ryzom-data 3 years ago
Nuno 1f9694f108 Reformat xml using tidy_config.txt 3 years ago
Nuno b1bc1a3b6c Fix issues with old gcc compiler (required by forge server) 3 years ago
Nuno 52c94ee0c6 Unremovable changes 3 years ago
Nuno 703c21cbc5 Merge branch 'feature/core4-atys' into main/yubo-dev 3 years ago
Nuno 048e344bbd Merge remote-tracking branch 'origin/21-fix-nopatch-without-argument-crash' into main/yubo-dev 3 years ago
Nimetu e77d7e8f08 Fix crash when --nopatch is used without argument 3 years ago
Nuno fd04303cf2 Merge branch '30-changes-for-silan-refactoring' into main/yubo-dev 3 years ago
Nuno 0a434d6402 Improvements in compass 3 years ago
Nuno 1898b0db6d Merge branch '30-changes-for-silan-refactoring' into main/yubo-dev 3 years ago
Nuno ab842cfc00 Right click and select a mission moves the player close to npc 3 years ago
Nuno fd967652ce UI:SAVE:ENABLE_RUMORS enable/disbale rumours 3 years ago
Nuno ba7123b519 Merge branch '29-fix-camera-vertical-rotation-prevent-see-under-the-char' into main/yubo-dev 3 years ago
Nuno 2c6e5688ba Merge branch '28-add-command-to-switch-small-full-map' into main/yubo-dev 3 years ago
Nuno 329e4b96a2 Merge branch 'fixes' into main/yubo-dev 3 years ago
Nuno e5f449bded Merge branch '27-fixed-crash-with-html-image-downloads' into main/yubo-dev 3 years ago
Nimetu 8517bb72e1 Fixed cleanup of html downloads 3 years ago
Nuno bfac62d5a3 Merge remote-tracking branch 'origin/add-craftplan-buffs-to-craft-interface' into main/yubo-dev 3 years ago
Nuno 30612d4897 Merge branch 'fix-area-effect-flying-text' into main/yubo-dev 3 years ago
Nuno 83be3cf90c Merge remote-tracking branch 'origin/26-encoding-issues-in-client-beta-after-core4-merge' into main/yubo-dev 3 years ago
Nimetu fc65536a1d Fix utf8 encoding on sphrase info window 3 years ago
Nuno d25f2222b7 Merge remote-tracking branch 'origin/modify-item-buff-icons' into main/yubo-dev 3 years ago
Nuno 9a578ad02e Merge branch '25-remove-lock-option-from-item-menu-in-guild-inventory' into main/yubo-dev 3 years ago
Nuno c86a3df2cf Fix 3 years ago
Nuno 06c9adcdcc Merge branch '25-remove-lock-option-from-item-menu-in-guild-inventory' into main/yubo-dev 3 years ago
Nuno a1816724d0 Merge branch 'feature/colissions-stairs' into main/yubo-dev 3 years ago
Nuno 85c80ab0f2 Smooth the z displacement of entities 3 years ago
Nuno f0b74071ad Npcs and mobs climb in stairs too 3 years ago
kaetemi e7717bd38c Git diff doesn't seem to like the imported $Id$ keyword contents to be on the repo 3 years ago
Nuno 8ea4ff53cb Added stairs collisions 3 years ago
Nuno 47183549b2 Merge branch 'main/gingo-test' into main/yubo-dev 3 years ago
kaetemi 0d1ac00392
Merge branch 'core4' into feature/core4-atys 3 years ago
Ulu Kyn 7f39d5d799 Merge ryzom-data into ryzom-core 3 years ago
Nuno 2088ca6923 Merge remote-tracking branch 'origin/16-drag-drop-to-player-trade-window-from-all-inventories' into main/yubo-dev 3 years ago
Nuno aeea387d2a Merge branch 'fixes' into main/yubo-dev 3 years ago
Nuno 1197e19835 Merge branch 'main/gingo-test' into main/yubo-dev 3 years ago
Nuno e3c5606baf Better fix 3 years ago
Nuno 0063396369 Missing serialization (client can't load the icfg) 3 years ago
kaetemi 415fe11606
Also apply u16 idx fix to msg.xml 3 years ago
kaetemi 56345cc0fc
Merge branch 'core4' into feature/core4-atys 3 years ago
Nuno ccef75cdf3
Merge branch 'fixes' 3 years ago
Nuno 92186cf142
Merge branch 'fixes' 3 years ago
kaetemi eddf3aaeeb
Merge branch 'merge/2021-11-19' into feature/core4-atys 3 years ago
Ulukyn 103cf6c580
Adding serve Shard 3 years ago
Nuno 9fab5a2020
Merge branch 'outpost_refactoring' into main/atys-live 3 years ago
Nuno 8ba8fc9f60
Merge branch 'new_features' into main/atys-live 3 years ago
Nuno 890eea4aad
Merge branch 'fixes' into main/atys-live 3 years ago
Nuno Gonçalves (Ulukyn) 5141435cdf
Update values from Atys 3 years ago
Nuno Gonçalves (Ulukyn) a7477d52b1
Fix 3 years ago
Nuno Gonçalves (Ulukyn) 0007051a19
Update cfgs templates 3 years ago
Nuno Gonçalves (Ulukyn) 05555015ea
Fixed: set uint16 in resell slotID 3 years ago
kaetemi 0c999cb58a
Merge remote-tracking branch 'origin/feature/develop-atys' into feature/core4-atys 3 years ago
kaetemi adff33fec5
Merge branch 'core4' into feature/core4-atys 3 years ago
Nuno Gonçalves (Ulukyn) a8a0d9162e
Fix resell issue (use uint16 instead of uint8 for Index) 3 years ago
Nimetu 31a454b21d
Add ScreenShotDirectory entry to client.cfg 3 years ago
Meubli 4924b3563e
pets inventory transactions
- Enable Zig <-> Flat inventory transactions (move between)
- Enable Zig <-> Guild inventory transactions (move between)
3 years ago
Nuno 03b66c18d4
Remove CPath::memoryCompress() because break CPath::lockup() 3 years ago
Nimetu 146a7e25e6 Fix flying text for area magic/combat actions 3 years ago
Nuno f878fd2a0b Merge branch 'add-screenshot-dir-to-config' into main/yubo-dev 3 years ago
Nimetu 7f7a11967b Add ScreenShotDirectory entry to client.cfg 3 years ago
Nuno f95b51c934 Merge branch 'feature/develop-atys' into main/yubo-dev 3 years ago
Ulu Kyn f6fc869602 Merge branch 'self-kill' into main/yubo-dev 3 years ago
Ulu Kyn 810976f843 Merge branch 'main/gingo-test' into self-kill 3 years ago
Nuno 07c9562799 Merge branch 'inventory-fixes' into main/yubo-dev 3 years ago
Ulu Kyn 4c9b16350c Merge branch 'main/gingo-test' into inventory-fixes 3 years ago
Nuno 6c517b3462 Merge remote-tracking branch 'origin/feature/develop-atys' into main/yubo-dev 3 years ago
Nuno 3c0b31c82c Merge branch 'atys' into yubo 3 years ago
kaetemi 8775656c3c
Find iconv debug library 3 years ago
kaetemi a9654bd0b4
Fix typo 3 years ago
kaetemi 3ec625265e
Merge remote-tracking branch 'origin/develop' into core4 3 years ago
kaetemi a001eac5ad
Find debug lua library 3 years ago
Nuno e5f594f656 Merge branch 'fixes' into yubo 3 years ago
Ben Saine 8c812ece15 self kill command 3 years ago
Ben Saine f998633767 Revert "self kill command"
This reverts commit 00597f9b18
3 years ago
Meubli 6eab9d9f9f pets inventory transactions
- Enable Zig <-> Flat inventory transactions (move between)
- Enable Zig <-> Guild inventory transactions (move between)
3 years ago
Ben Saine 00597f9b18 self kill command 3 years ago
Ben Saine f3b0cd5325 Update .gitignore 3 years ago
Ben Saine 3c9b21c1b8 Merge branch 'inventory-fixes' into 'inventory-fixes'
Inventory Fixes - move to original repo

See merge request ryzom/ryzom-core!9
3 years ago
kaetemi 56008be890
Include cacert.pem with the dev game data in the repo 3 years ago
kaetemi 7127f9f5f4
Properly follow StartupVerify setting 3 years ago
kaetemi ca9729b2a0
Native windows CA certs are causing issues in libcurl with Letsencrypt certificates, so disable them for now 3 years ago
kaetemi 671d8bb286
Show more useful error on login failure 3 years ago
kaetemi 939836b5bb
Show more useful error on login failure 3 years ago
bensaine 8f372625fa fix: show correct status for zig in inventory 3 years ago
kaetemi 088171a589
Proper defaults for public Ryzom Core 4 shard 3 years ago
kaetemi a81fcd105a
Stop sound when patching sound bnp 3 years ago
kaetemi 6a7bcf771d
Stop sound when patching sound bnp 3 years ago
kaetemi bdbd12c625
Improve c++0x check 3 years ago
kaetemi 549b2b0f22
Fix build when using ValyriaTear/luabind (on Ubuntu 20.04 LTS) 3 years ago
kaetemi de7b301af9
Improve c++0x check 3 years ago
kaetemi 9466258fa8
Fix for MySQL 8 client lib support 3 years ago
kaetemi 996f6c218e
Fix build when using ValyriaTear/luabind (on Ubuntu) 3 years ago
kaetemi 70aecc79c1
Ubuntu 16.04 is EOL 3 years ago
kaetemi 1e923d03ee
Fix for MySQL 8 client lib support 3 years ago
kaetemi 41b4ec6bf3
Add Ubuntu 20.04 target to Azure Pipelines configuration 3 years ago
kaetemi cee0f53c1d
Merge remote-tracking branch 'ryzomcore/develop' into core4 3 years ago
Nuno Gonçalves (Ulukyn) b5c5e0637e Merge branch 'fixes' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) d82dc7b51b Merge branch 'fixes' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) 0070ca1b14 Merge remote-tracking branch 'origin/develop' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) b7b0f728d7 Merge remote-tracking branch 'origin/feature/develop-atys' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) 5622832583 Merge remote-tracking branch 'origin/feature/develop-atys' into yubo 3 years ago
kaetemi 1b162fb3ae
Merge remote-tracking branch 'ryzomcore/develop' into core4 3 years ago
Nimetu 959f7cfbe8
Fix css background for html/body element 3 years ago
kaetemi 1c035401c6
Merge remote-tracking branch 'ryzomcore/develop' into core4 3 years ago
Riasan e87839c05b
Changed: added a clear button to SysInfo ,by default not visible 3 years ago
Nimetu 24e918071c
Fix css background for html/body element 3 years ago
kaetemi bae7019bc4
Use client_default from forge data repo 3 years ago
Riasan 1f3d87efac
Changed: modify login ui + new urls for account buttons 3 years ago
Jan Boon 60cabbe8ee
Merge pull request #642 from planetmaker/_lua54
Add: Support for Lua 5.4 bindings (Linux)
3 years ago
kaetemi 1eec1fe31e
Fix vs2008 build 3 years ago
kaetemi df315edf33
Fix ucstring merge 3 years ago
kaetemi a77f823ba3
Fix ucstring merge 3 years ago
kaetemi bd66461305 Merge remote-tracking branch 'origin/atys' into feature/core4-atys 3 years ago
kaetemi e508082ce1 Merge commit 'ce5817721a725f74429fad188b8be7acacd7ebb2' into feature/core4-atys 3 years ago
Nuno adf9719076
Merge branch 'outpost_refactoring' 3 years ago
kaetemi 5fe1c8b378
Merge branch 'core4' into feature/core4-atys
# Conflicts:
#	ryzom/common/data_common/msg.xml
#	ryzom/server/src/entities_game_service/client_messages.cpp
#	ryzom/server/src/entities_game_service/player_manager/character.cpp
#	ryzom/server/src/entities_game_service/player_manager/character_inventory_manipulation.cpp
3 years ago
planetmaker 1f856ecd8e Add: Support for Lua 5.4 bindings 3 years ago
kaetemi ac9e8f4f5e
Merge remote-tracking branch 'origin/develop' into core4
# Conflicts:
#	ryzom/client/src/interface_v3/action_handler_help.cpp
3 years ago
Nuno Gonçalves (Ulukyn) add51baef1 Merge branch 'feature/develop-atys' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) 59128be885 Revert changes on yubo (silan_refactoring branch) 3 years ago
Nuno Gonçalves (Ulukyn) 4964f14292 Merge branch 'atys' into yubo 3 years ago
Nuno 4776891769 Merge branch 'atys' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) 067f17b16e Merge branch 'fixes' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) 13f4b8a799 Merge branch 'fixes' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) 861f27eb9e Merge branch 'fixes' into yubo 3 years ago
Nuno Gonçalves (Ulukyn) de0223ea8b Merge branch 'fixes' into yubo 3 years ago
Nuno 7af0b752f8 Merge branch 'ryzom/silan_refactoring' into yubo 3 years ago
Nuno 496b86e50d Update welcome 3 years ago
kaetemi 33a8128cfc
Add option to EGS to enable ring loot and xp 3 years ago
kaetemi d465191e96
Move sheet generator scripts to leveldesign 3 years ago
kaetemi fdc0af158c
Fix generated gender for 3dset 3 years ago
kaetemi 5a34b3dc59
Tweak xp level 3 years ago
kaetemi 03270f330f
Generate required NPCs for Ring 3 years ago
kaetemi 3fbb3242ee
Remove unused value 3 years ago
kaetemi 1dd98445ca
Generate generic action lists 3 years ago
kaetemi d607dec79e
Adjust folders, prepare a new success table 3 years ago
kaetemi df69ff8507
Generate generic magic dot ai actions 3 years ago
kaetemi efd2dea7e4
No need to specify melee type, since it's inherited from the equipped weapon 3 years ago
kaetemi bc5d0fae17
Add option to disable using the dodge resist table average in calculating mob damage 3 years ago
kaetemi 9bd90c47c4
Print out average dodge factor 3 years ago
kaetemi 010c2c84eb
Generate genereric aeo and curse actions 3 years ago
kaetemi 838a362fad
Generate generic actions for melee and range 3 years ago
kaetemi 48548c99b8
Rebalance generated stats 3 years ago
kaetemi 34e079c020
Generate appropriate values for EGS 3 years ago
kaetemi 144ebe7f72
Comment out unused variables 3 years ago
kaetemi 5ef4a97c8a
Fix missing log context 3 years ago
kaetemi 62ed0d6de9
Generate generic ai actions for magic damage 3 years ago
kaetemi 7ecc87e3ed
Extract required creature parents 3 years ago
kaetemi 1df9e53dd5
Extract required npc creatures from palette 3 years ago
kaetemi a8f147231d
Generate melee weapons 3 years ago
kaetemi f73be89553
Generate armors into proper folders 3 years ago
kaetemi 5a090b2943
Remove redundant caster parts from palette 3 years ago
kaetemi 190057b11b
Generate shield items 3 years ago
kaetemi 03b9e1f44f
Remove known missing from list 3 years ago
kaetemi 93dc106d95
List remaining missing items 3 years ago
kaetemi 5fc80fca13
Improve naming convention 3 years ago
kaetemi 3aeef70db8
Wipe packed shard sheets if visual slot table has changed 3 years ago
kaetemi c71980df2e
Fix missing piece of boss armor 3 years ago
kaetemi 34bb64cea7
Generate craftable refugee armor sheets 3 years ago
kaetemi fe9d945265
Generate craftable underwear sheets 3 years ago
kaetemi 725206c678
Add boss armor to generated sheets 3 years ago
kaetemi 43716f30fb
Add separate item list for manual additions 3 years ago
kaetemi 5117fd742b
Script to update references to renamed bricks and phrases 3 years ago
kaetemi d79f103525
Generate random mp count 3 years ago
kaetemi 151f5270bc
Test button for toggling armor (disabled) 3 years ago
kaetemi be7ee784ec
Always put the current brick name in the first column 3 years ago
kaetemi 3d174a1294
Track missing and duplicate sbricks 3 years ago
kaetemi 7a6227efcc
Extend parsing for additional armors 3 years ago
kaetemi fd14ad6c94
Generate craft brick and phrase for sitem 3 years ago
kaetemi c4025de222
Preserve previously extracted brick family indices 3 years ago
kaetemi 5346d2b15e
Tag brick family and skill trees 3 years ago
kaetemi 3cf8ca0959
Parse previous brick family indices to retain compatibility 3 years ago
kaetemi 68eb9149df
Generate armor sitem sheets 3 years ago
kaetemi 0115e0b745
Generate sitem parent sheets 3 years ago
kaetemi e0e85d0100
Parse parent sheet names as well 3 years ago
kaetemi e3ac824104
Simplify crafted rule for sitem name parser 3 years ago
kaetemi 56c3248198
Improve weapon matching tags 3 years ago
kaetemi 6cabc38192
Add script to match shape to sitem 3 years ago
kaetemi 3a2c47ac5a
Add script to parse shape names 3 years ago
kaetemi d9ac7b70a8
Write sitem name tags to output 3 years ago
kaetemi c41cdd76ff
Add script for extracting list of sheets required for R2 pallete. Add script for parsing and generating sitem names 3 years ago
kaetemi ec63cdc818
Fix world editor paths 3 years ago
kaetemi d235885d70
Fix truncated string conversion 3 years ago
kaetemi ef4fb03143
Update executable paths in tools 3 years ago
kaetemi cf2bf5629f
Move item rename to be an admin command, not for player use 3 years ago
kaetemi e0082cb919
Fix tool build 3 years ago
kaetemi 3e1ef7845c
Fix typo 3 years ago
kaetemi c12f83d36d
Merge fixes from core 3 years ago
kaetemi 97c7f85aed
Merge r2 entry points changes 3 years ago
kaetemi 9792fee256
Merge remote-tracking branch 'origin/core4' into feature/core4-atys 3 years ago
kaetemi 6169126391
Fix includes 3 years ago
kaetemi ec6b13a88b
Fix duplicate include 3 years ago
kaetemi 553a51488b
Fix include 3 years ago
kaetemi 0cf92bc6a8
Fix include 3 years ago
kaetemi 895881922e
Merge remote-tracking branch 'origin/core4' into feature/core4-atys 3 years ago
kaetemi b9e71480f4
Merge fixes from core branch 3 years ago
kaetemi 2889e81d63
Typo 3 years ago
kaetemi e62991d40c
Restore character cpp formatting 3 years ago
kaetemi 41e4f6800f
Merge fixes from core branch 3 years ago
kaetemi 678d888b5c
Merge stuff from atys branch 3 years ago
kaetemi 6a79a5bf0f
Include fixes from atys branch 3 years ago
kaetemi ca54ba7934
Merge remote-tracking branch 'origin/core4' into feature/core4-atys 3 years ago
kaetemi 2928e81ec7
Merge fixes from core branch 3 years ago
kaetemi b4638c7969
Include fixes from atys branch 3 years ago
kaetemi 7ce499c018
Merge remote-tracking branch 'origin/core4' into feature/core4-atys 3 years ago
kaetemi 4028534f2a
Exclude sync and generated source from attribution 3 years ago
kaetemi 0b449bb95a
Regenerate sources 3 years ago
kaetemi ecf990f8ae
Sync network xml with Forge data repo, rev ba4724f848d80775acdd7e3190f6e3eb8af47834 3 years ago
kaetemi c8d80d2880
Merge remote-tracking branch 'origin/core4' into feature/core4-atys 3 years ago
kaetemi 41c8499bd4
Sync UI xml with Forge data repo, rev ba4724f848d80775acdd7e3190f6e3eb8af47834 3 years ago
kaetemi a3dea88eb1
Use better contrast 3 years ago
kaetemi b1733439d0
Splash screen for core 3 years ago
kaetemi 7cba0c8794
Merge branch 'core4' into feature/core4-atys 3 years ago
kaetemi c919b1891b
Ensure python from the path is used 3 years ago
kaetemi 5df65ae36e
Add shard dev step to convenience scripts 3 years ago
kaetemi 56beb7e214
Add some additional utility scripts for the pipeline 3 years ago
kaetemi dea792a3f7
Option to automatically configure the dev shard in the web database 3 years ago
kaetemi c5ccd66749
Simplify web setup. Use service dashboard tool. Create phpmyadmin database automatically 3 years ago
kaetemi ff971efc42
Put hostname as default domain. This is convenient since we have one VM per domain for admin and web services 3 years ago
kaetemi 85d1180719
Automatically put the proper folder for dev shard 3 years ago
kaetemi 4d65d5c459
Fix sql default value 3 years ago
kaetemi 6f2cd1fa1b
Generate the correct path in the sql config 3 years ago
kaetemi 23b188cadc
Support launch ctrl on dev shard 3 years ago
kaetemi 4fb55a86d3
Add launch priority to dev shard configuration 3 years ago
kaetemi 3be4999816
Fix sql config template 3 years ago
kaetemi d08547121f
Fix webig 3 years ago
kaetemi 0483474ea0
Fix php warning 3 years ago
kaetemi 7f8d286bc5
Fix high res graph output error on windows 3 years ago
kaetemi 2ecaf3ecd9
Fix web warning 3 years ago
kaetemi 7a95ff23f3
Make admin tool graphs work on windows 3 years ago
kaetemi cb47713119
Update jpgraph 3 years ago
kaetemi 8adf8e228a
Fix web warnings 3 years ago
kaetemi 7e7494f897
Set dev shard rrdtool path 3 years ago
kaetemi 9cf4677005
Generate AES configuration for dev shard 3 years ago
kaetemi 8f40fdb7b4
Ignore duplicate file spam on dev shard, it's normal 3 years ago
kaetemi 2fc5798f67
Revert "Adjust default ports from 49xxx range to 43xxx range"
This reverts commit 0a1689ae10.
3 years ago
kaetemi 4fe7175916
Revert "Adjust SU port"
This reverts commit 77e69856d4.
3 years ago
kaetemi ec42a95484
Merge branch 'core4' into feature/core4-atys 3 years ago
kaetemi 7709977b48
Put the proper version number in service titles 3 years ago
kaetemi 25b403556f
Fix SQL string in admin tool with custom port 3 years ago
kaetemi 77e69856d4
Adjust SU port 3 years ago
kaetemi b6e79ee3e1
More useful defaults for generated batch 3 years ago
kaetemi 0a1689ae10
Adjust default ports from 49xxx range to 43xxx range 3 years ago
kaetemi cda6770adb
Use the service dashboard instead of wt and conemu 3 years ago
kaetemi d9b59c1fdc
Include Python with the quick start package 3 years ago
kaetemi 5a8fa2052b
Generate shard configuration for service dashboard 3 years ago
kaetemi 31f31e6d69
Fix python path in web config script 3 years ago
kaetemi 187ef3af19
Add scripts for preparing the package 3 years ago
kaetemi 880f850be7
Add tool availability checks to build script 3 years ago
kaetemi 0fe48635f5
Proper EOL for sh checkout 3 years ago
kaetemi 59b5d1228f
Don't override unchanged 3 years ago
kaetemi b594606862
Fix initial shard dev 3 years ago
kaetemi 10fc562e07
Add trick for reusable dev config 3 years ago
kaetemi 7175e7f9ed
Launch scripts for dev client 3 years ago
kaetemi a5d0f904a4
Install scripts may use real paths 3 years ago
kaetemi 45668dcbfe
Generate dev client folder without binaries to match dev shard behaviour 3 years ago
kaetemi 614da137ac
Remove a lost file 3 years ago
kaetemi 1d06892f16
Remove duplicate web folder 3 years ago
kaetemi 08c094e957
Remove exe 3 years ago
kaetemi 681f133400
Remove redundant cfg files 3 years ago
kaetemi cac99dc9ab
Add missing browser css. Restore login window layout 3 years ago
kaetemi d30a80acea
Include service folders in dev shard paths 3 years ago
kaetemi 486af5ec85
Fix working directory for created shortcuts 3 years ago
kaetemi 9230eb1621
Preconfigure web 3 years ago
kaetemi 08a28193b4
Can also run dev unifier in release mode 3 years ago
kaetemi 8ad0536eed
Fix initial configuration build 3 years ago
kaetemi 211d4d276d
Add initial template for quick start package 3 years ago
kaetemi 378bef8db3
Include build output in dev shard at lower prio 3 years ago
kaetemi e9080405fc
Update title 3 years ago
kaetemi 090ff7d509
Add script to help repairing translation hashes 3 years ago
kaetemi 39190cde60
Merge remote-tracking branch 'ryzomcore/develop' into ryzomclassic-develop 3 years ago
kaetemi 5f04f05945
Merge branch 'feature/prepare-cross-merge' into feature/core4-atys 3 years ago
kaetemi e6a617b8bc
Sync with Forge server repo, rev ee7e32c71e8b4988e07eb6c52fec6a3fffe0cfc3 3 years ago
Nuno c8ba121b88
Merge branch 'ark' 3 years ago
Nuno 438cce1323
Merge branch 'ark' 3 years ago
Nuno 005f1c755c
Merge branch 'ark' 3 years ago
Nuno 4108367413
Merge branch 'ark' 3 years ago
Nuno 3ccdb43683
Player can't exchanges jewels with allegories 3 years ago
Nuno aad1a6edd0
Merge branch 'ark' 3 years ago
Nuno 9b475fde60
Merge branch 'outpost_refactoring' 3 years ago
Nuno 4401db3dc7
Merge branch 'feature/bonusmalus-timers' 3 years ago
Nuno ca543ce9b6
Merge branch 'outpost_refactoring' 3 years ago
Nuno 73fc8e09ef
Merge branch 'outpost_refactoring' 3 years ago
Nuno c2fa3133b9
Merge branch 'outpost_refactoring' 3 years ago
Nuno 796582e235
Merge branch 'new_features' 3 years ago
Nuno 1c57ac7b8f
Merge branch 'ark' 3 years ago
Nuno 0f74f62640
Merge branch 'ark' 3 years ago
Nuno d5c03115d9
Remove useless variable 3 years ago
Nuno fe9b7aea89
Remove bad commit 3 years ago
Nuno c4fc834e67
Updated shard.screen.rc 3 years ago
Nuno 729deabd7a
Update install rocketchat 3 years ago
Nuno 0479a5ba8e
Merge branch 'allegories' 3 years ago
Nuno c4115ae2a4
Updated tools 3 years ago
Nuno 46ad8bcf5d
Merge branch 'new_features' 3 years ago
Nuno af4f4a1de6
Merge branch 'fixes' 3 years ago
Nuno c0129de5ed
Fixes for getNPCNameFromAlias 3 years ago
Nuno 5761a4a638
Merge remote-tracking branch 'origin/fixes' 3 years ago
Nuno 8d180bd38b
Merge branch 'ark' 3 years ago
Nuno bad68017b8
Fix issue with getTargetNames who are lowerized 3 years ago
Nuno e0c4bcf4e0
Merge branch 'new_features' 3 years ago
Nuno a1d3f91a9b
Merge branch 'new_features' 3 years ago
Nuno 2804161714
Merge branch 'new_features' 3 years ago
Nuno 371f529699
Fix 3 years ago
Nuno 4d4223c87c
Fix 3 years ago
Nuno f7953eea36
Fix 3 years ago
Nuno 806cb449a1
Some fixes 3 years ago
Nuno b76ac3d37f
Merge branch 'fixes' 3 years ago
Nuno d33f6b283f
Merge branch 'deepl' 3 years ago
Nuno 08393ea94d
Merge branch 'marauder_fame' 3 years ago
Nuno 9b5a4d94cf
Merge branch 'new_features' 3 years ago
Nuno ca042995c0
Merge branch 'fixes' 3 years ago
Nuno d88b549dbc
Merge branch 'fixes' 3 years ago
Nuno e3b030b823
Merge branch 'ark' 3 years ago
Nuno bf4ccacec6
Merge branch 'ark' 3 years ago
Nuno f0cc3f3b42
Merge branch 'ark' 3 years ago
Nuno 4008a69448
Added setAnimalTitle 3 years ago
kaetemi 141e7c6459
Sync to Forge server repo, rev 9f74b215ab99c508b08e2cee125946167d87e2ba 3 years ago
Nuno 000fdfb5d7
Merge branch 'fixes' 3 years ago
Nuno 17d84c5925
Merge branch 'fixes' 3 years ago
Nuno 0e833c37ef
Merge branch 'fixes' 3 years ago
Nuno 7f33e9bdd6
Merge branch 'fixes' 3 years ago
Nuno 5678ef1727
Revert "Merge branch 'yubo'"
This reverts commit 5319587e80ed7e822944565cde8b9a437b8fc55c.
3 years ago
Nuno 619b5fd122
Merge branch 'yubo' 3 years ago
Nuno a58af169ab
Merge branch 'ark' 3 years ago
Nuno bd6c6c4fc2
Merge branch 'deepl' 3 years ago
Ulukyn d6dcd13938
Merge branch 'fixes' 3 years ago
Ulukyn 72d29ef8f6
Merge branch 'fixes' 3 years ago
Ulukyn 578ae687df
Merge branch 'ark' 3 years ago
Ulukyn 3c178cb506
Merge branch 'deepl' 3 years ago
Ulukyn 0d57aad8b9
Merge branch 'fixes' 3 years ago
Ulukyn e6bb1f2f54
Merge branch 'deepl' 3 years ago
Ulukyn ea095ca4f3
Merge branch 'fixes' 3 years ago
Ulukyn 8df98ce44a
Merge branch 'ark' 3 years ago
Ulukyn ae685b3d68
Merge branch 'ark' 3 years ago
Ulukyn 653a8fb472
Added: login htacess and server_open_status 3 years ago
Ulukyn 5bddc6eaa7
Added: python tools for server commands
Install Rocketchat script
3 years ago
Ulukyn 406072f3e1
Merge branch 'ark' 3 years ago
Ulukyn 1c8a939797
Merge branch 'ark' 3 years ago
Ulukyn 463738c036
Changed: remove some logs 3 years ago
Ulukyn 10666c23bd
Merge branch 'ark' 3 years ago
Ulukyn 085cead1a1
Merge branch 'ark' 3 years ago
Ulukyn f764a0e6d9
Merge branch 'ark' 3 years ago
Ulukyn 4dafe289e5
Merge branch 'ark' 3 years ago
Ulukyn a3818593b8
Merge remote-tracking branch 'origin/feature-new-forage-sbricks' 3 years ago
Ulukyn 1b5f2ed003
Merge branch 'ark' 3 years ago
Ulukyn ecf38c8ddc
Merge branch 'ark' 3 years ago
Ulukyn be3c81aa80
Merge branch 'generic-gameplay' 3 years ago
Ulukyn 887dbdad0d
Merge branch 'ark' 3 years ago
Ulukyn 62457be418
Fixed: typo 3 years ago
Ulukyn f3b22802e8
Fixed: Don't manage translation of Npcs with deepl 3 years ago
Ulukyn 230ca5ffdb
Fixed: Remove hardcoding of mongo server and db. Prevent crash of ios 3 years ago
Ulukyn 1a6b197411
Merge branch 'generic-gameplay' 3 years ago
Ulukyn d3b2e1f4b5
Changed: updated database_plr file 3 years ago
Ulukyn 164719aa55
Fixed: Remove useless include of news_types.h 3 years ago
Ulukyn ed4e88c773
Fixed: replace nlassert by return to prevent crash of EGS 3 years ago
Ulukyn b35ba142be
Merge branch 'ark' 3 years ago
Nuno Gonçalves 417b42487d
Merge with Ark 3 years ago
Nuno Gonçalves dad6e43285
Merge with Ark 3 years ago
Nuno Gonçalves 16d3fa8e6a
Fixed: Prevent crash of IOS when renames uses ' and special chars 3 years ago
kaetemi cca82baa89
Include other stuff from Forge server repo, same rev 3 years ago
kaetemi a3a074f455
Sync with Forge server, rev fa044821f36dfdd47986c32a1357fc028984b385 3 years ago
kaetemi db211ffff7
Put good defaults for development 3 years ago
kaetemi c3dcdd25de
Adjust path style in config 3 years ago
kaetemi 3b993c6cda
Update defaults 3 years ago
kaetemi bc9d15a149
Generate dev shard configuration using patchman 3 years ago
kaetemi e067e0eeeb
Add script to setup dev shard folder 3 years ago
kaetemi 7873a839ef
Change to GroupController 3 years ago
kaetemi 3352401f24
Version bump 3 years ago
kaetemi 549a015847
Ring database missing default fix 3 years ago
kaetemi fb1557c08e
Version bump 3 years ago
kaetemi a3626de8bb
Generate separate dev client for local and remote dev 3 years ago
kaetemi 0045696546
Simplify tool paths 3 years ago
kaetemi a5dd6aa857
Prefer local path configuration where relevant 3 years ago
kaetemi 5da1678357
Generate secondary buildsite config with real local path 3 years ago
kaetemi 694338302e
Cleanup 3 years ago
kaetemi 5b22e0950a
Disable adjustment warning since it's not very useful. Speed limit needs to be able to reference a more accurate timing 3 years ago
kaetemi 20ed0a4412
Only send position if client game tick advanced as well 3 years ago
kaetemi c8ecf0a756
Enable full frequency connection 3 years ago
kaetemi d07e219439
Cleanup unused FS tick value 3 years ago
kaetemi 92bfb0aafb
Re-add lag compensation time from client to tick value in mirror 3 years ago
kaetemi 4407fc2970
Position speed checks should be based on the client tick. This fixes excessive rubber banding 3 years ago
kaetemi 3f63f27143
Disable slow system metrics function because it really is slow and chokes the update loop 3 years ago
kaetemi cb9094f091
Merge branch 'develop' into ryzomclassic-develop 3 years ago
kaetemi 30117e92be
More hashing of sequential indices 3 years ago
kaetemi b9de2e99a3
Actually hashing entries for a hash map makes it immensely faster 3 years ago
kaetemi 77f92c72a9
Fix race conditions in frontend service send task 3 years ago
kaetemi b33ff3cb93
Remove useless CPU hog 3 years ago
kaetemi da9c5173a6
Improve debug message 3 years ago
kaetemi 3ec5a87d40
Generate script to launch tabbed 3 years ago
kaetemi 2cd2b9502f
Sender doesn't guarantee anything about pos, this doesn't seem to work on Win32 host 3 years ago
kaetemi 88e2ebd31c
Todo note 3 years ago
kaetemi 492865deed
Skip AES placeholder 3 years ago
kaetemi a1023f923f
Fix dev batch file generation to work with the current naming scheme 3 years ago
kaetemi ce8acd4ca2
Specify SQL server port 3 years ago
kaetemi 9d722bb70f
Show correct label for Editor mode in quit dialog, fix kaetemi/ryzomclassic#113 3 years ago
kaetemi 59c1c340b8
Restore some more ui xml formatting 3 years ago
kaetemi 43af8e6695
Restore some more ui xml formatting 3 years ago
kaetemi f128e0807c
Restore some more ui xml formatting 3 years ago
kaetemi 8cecbb4a7d
Restore mailbox and forums 3 years ago
kaetemi feb7e7a812
Merge branch 'develop' into ryzomclassic-develop 3 years ago
kaetemi 8b6c3276e4
Defer browsing while web server not set 3 years ago
kaetemi deb1c7c131
Remove hardcoded URLs in favour of the web URL provided by the shard 3 years ago
kaetemi fc3f0355a5
Remove web notification polling (remote code execution path) 3 years ago
kaetemi 578cef6c85
Update ring database charsets 3 years ago
kaetemi 413ca990d0
Upgrade nel database charsets 3 years ago
kaetemi 37d52231ef
Fixes for webig, ref kaetemi/ryzomclassic#4 4 years ago
kaetemi f8cb53bfd8
Update ams smarty 4 years ago
kaetemi 90225d0011
Remove unsupported PHP 4 years ago
kaetemi e08079fe5f
Fix typo 4 years ago
kaetemi a188c6b38a
Update admin tool smarty lib 4 years ago
kaetemi 3f0bacd374
Allow alternate SQL port 4 years ago
kaetemi f9b7dbd4cb
Dummy to ensure folder exists 4 years ago
kaetemi 449c90a4b0
Reorganize web configuration, allow custom SQL port 4 years ago
kaetemi dba5d1a1ca
Exclude commit from annotation 4 years ago
kaetemi bce886595e
Include webig config in setup, ref kaetemi/ryzomclassic#4 4 years ago
kaetemi e97cf09e04
Restore legacy webig, ref kaetemi/ryzomclassic#4 4 years ago
kaetemi dbe34b0c8f
Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 7a647ab76d
Update GPL headers 4 years ago
kaetemi 113f3f97d7
Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 28fd4d9011
Merge branch 'develop' into ryzomclassic-develop 4 years ago
Nuno e106cb5d94 Merge remote-tracking branch 'origin/fixes' into yubo 4 years ago
Nuno ede323ce2f Merge remote-tracking branch 'origin/fixes' into yubo 4 years ago
Nuno 5477796ae9 Merge branch 'storyline/s2e0' into yubo 4 years ago
Nuno b5f5908a92 Merge branch 'ryzom/ark/features' into yubo 4 years ago
Nuno b0b341f29e Merge branch 'fixes' into yubo 4 years ago
Nuno 8a71bfeb92 Merge branch 'fixes' into yubo 4 years ago
Nuno bb32227592 Merge branch 'fixes' into yubo 4 years ago
Nuno 16f41f5cb1 Merge branch 'fixes' into yubo 4 years ago
Nuno 3817b78e06 Merge branch 'translation-settings-improvements' into yubo 4 years ago
Nuno 484f3662b3 Merge branch 'translation-settings-improvements' into yubo 4 years ago
Nuno c6a798a33d Merge branch 'translation-settings-improvements' into yubo 4 years ago
Nuno 814961b430 Merge branch 'translation-settings-improvements' into yubo 4 years ago
Nuno f6eda150d0 Merge branch 'feature/bonusmalus-timers' into yubo 4 years ago
Nuno ec0131b37f Merge remote-tracking branch 'origin/fixes' into yubo 4 years ago
Nuno eb6585cd48 Merge branch 'ryzom/op_refactoring' into yubo 4 years ago
Nuno e876694526 Merge branch 'ryzom/op_refactoring' into yubo 4 years ago
Nuno a4ee4e4881 Merge branch 'ryzom/op_refactoring' into yubo 4 years ago
Nuno 538610c1b1 Merge branch 'ryzom/op_refactoring' into yubo 4 years ago
Nuno 401df61a8d Merge branch 'ryzom/op_refactoring' into yubo 4 years ago
Nuno 150210ecfd Merge branch 'storyline/s2e0' into yubo 4 years ago
Nuno 58179537b7 Merge branch 'storyline/s2e0' into yubo 4 years ago
Nuno e9bdb27f20 Merge branch 'ryzom/op_refactoring' into yubo 4 years ago
Nuno e0680c7c97 Merge branch 'fixes' into yubo 4 years ago
Nuno ee669f66a5 Merge branch 'ryzom/ui/improvements' into yubo 4 years ago
Nuno 27e42298dc Merge branch 'ryzom/ui/improvements' into yubo 4 years ago
Nuno 7c48598287 Merge branch 'ryzom/ui/improvements' into yubo 4 years ago
Nuno c2feca91e1 Merge branch 'ryzom/ui/improvements' into yubo 4 years ago
Nuno 1c5a1efe28 Merge branch 'fx' into yubo 4 years ago
Nuno 67c58ed78b Merge branch 'ryzom/ui/improvements' into yubo 4 years ago
Nuno 47eae278e3 Merge branch 'fixes' into yubo 4 years ago
Nuno cfe6b04414 Merge branch 'feature/hires-textures' into yubo 4 years ago
Nuno a35cdd8648 Merge branch 'atys' into yubo 4 years ago
kaetemi fdbe73937a Merge branch 'develop' into ryzomclassic-develop 4 years ago
Nuno 662abaf955 Merge branch 'ryzom/ark/features' into yubo 4 years ago
Nuno 24d27bad88 Merge branch 'feature/hires-textures' into yubo 4 years ago
Nuno 6cef6e611f Merge branch 'atys' into yubo 4 years ago
kaetemi d58854ab33 Merge branch 'develop' into ryzomclassic-develop 4 years ago
Nuno 465ff41f6b Merge branch 'fixes' into yubo 4 years ago
Nuno db0c8f1420 Merge branch 'fixes' into yubo 4 years ago
Riasan 6d2aae382c Merge remote-tracking branch 'remotes/origin/ryzom/ui/improvements' into yubo
# Conflicts:
#	code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp
#	code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h
4 years ago
Nuno 19a6e8cd1a Merge branch 'fixes' into yubo 4 years ago
Nuno 05bc2918ba Merge branch 'friend_list_groups_and_notes' into yubo 4 years ago
Nuno 7279aafa05 Merge remote-tracking branch 'origin/fixes' into yubo 4 years ago
kaetemi b4b701f90e Merge remote-tracking branch 'ryzomcore/develop' into ryzomclassic-develop 4 years ago
Xtarsia 35f30e566b Update widgets.xml
closes #181
4 years ago
kaetemi c341631dbf Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 59ee36332c Send characteristic buff flags, kaetemi/ryzomclassic#210 4 years ago
kaetemi 45bc21e5c9 Show characteristic buffs of item in icon, fix forge enhancement, kaetemi/ryzomclassic#203 4 years ago
kaetemi cf16ec5c44 Disable unused item cache, ref kaetemi/ryzomclassic#203 4 years ago
kaetemi 817ca5bf2b Restore right click info to classic behaviour, kaetemi/ryzomclassic#86 4 years ago
kaetemi 7eeb845768 Restore splash screen 4 years ago
kaetemi 6d975e9879 Fix Max version 4 years ago
kaetemi 305ed94561 Fix 4 years ago
kaetemi ebc220fedb Merge remote-tracking branch 'origin/temp/more-patches-53' into ryzomclassic-develop 4 years ago
kaetemi a7e880e724 Move operator 4 years ago
Xtarsia 607b708465 main chat box pixel tweeks 4 years ago
kaetemi 144088af13 Fix missing duplicated code change 4 years ago
kaetemi 6dfff83589 Need to start PACKED at 4 bits to get the full 64 bits value range encoded, use nullable for better 0 compression 4 years ago
kaetemi b5f320af33 Fix build 4 years ago
kaetemi d1769c586f Merge branch 'feature/cdb-packed-ryzomclassic' into temp/more-patches-53 4 years ago
kaetemi 68b0fbeae8 Where did this come from 4 years ago
kaetemi 879b792c6a Merge branch 'ryzomclassic-develop' into feature/cdb-packed-ryzomclassic 4 years ago
kaetemi 431b1140e9 Merge commit '505e13cd1eb576209ac7e088c91e0ba1a3e2da62' into feature/cdb-packed-ryzomclassic 4 years ago
kaetemi 6f2e45d352 Merge commit '05fdc723f1519009c05f0963846b41b3ca7c3858' into feature/cdb-packed-ryzomclassic 4 years ago
kaetemi 4169349166 Merge remote-tracking branch 'origin/temp/more-patches-14' into feature/cdb-packed-ryzomclassic 4 years ago
kaetemi c624984da1 Merge commit '6f545aedd5638e093f35f1e156d3ed4f9a91cb18' into feature/cdb-packed 4 years ago
Nuno 68848ad964 Merge remote-tracking branch 'origin/fixes' into yubo 4 years ago
kaetemi b96d96f004 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 3609d6369a Restore classic PvP Challenge context menu 4 years ago
kaetemi 46541a700c Test item renames 4 years ago
kaetemi 8d4c0d0ef1 Fix build 4 years ago
kaetemi be11ae1fb6 Add network messages for locking and renaming items 4 years ago
kaetemi f203559ecb Update client inventory when item name is changed 4 years ago
kaetemi be28e102ec Add buff flags to item summary 4 years ago
kaetemi d512d10f18 Add guild access grade bits to inventory summary 4 years ago
kaetemi 24ceb5df04 Add ACCESS, remove SERIAL and CREATETIME to inventory sync 4 years ago
kaetemi bd0c694970 Fix insane XML formatting 4 years ago
kaetemi 5769a3599e Add editor config 4 years ago
kaetemi 176e0975f6 Fix build 4 years ago
kaetemi 7c4a2f857d Restore PvP challenge message callbacks 4 years ago
kaetemi bc3a602ebc Phrase literal flag for item name, replaces separate string, kaetemi/ryzomclassic#194 4 years ago
kaetemi 9eb7481c06 Cleanup CGameItemPtr, add reference count to avoid glitches, kaetemi/ryzomclassic#194 4 years ago
kaetemi 66debd7ebe Dumb. Clean up, kaetemi/ryzomclassic#194 4 years ago
kaetemi f0430ec8ad Note 4 years ago
kaetemi caa4eea391 Disable debug 4 years ago
kaetemi 3604088713 Keep a spare memory block in fixed size allocator to avoid large allocation overhead on the chunk boundary 4 years ago
kaetemi cd4b746bfa Clean up mess 4 years ago
kaetemi 60f61caa2c Disable game item ptr debug code when item ptr debug is disabled... 4 years ago
kaetemi a5e9542f2f Disable game item debug code since it's not maintained 4 years ago
kaetemi 7b1136ff0b Use pointers for the strings in game item, since they're not common 4 years ago
kaetemi abd5c38a80 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 2a37a76cb5 Remove old ClientInventoryPosition property 4 years ago
kaetemi 4c701386f4 Comment 4 years ago
kaetemi e9feca648a Fix wrong time type 4 years ago
kaetemi 4ae411968e Prepare a little surprise for naughty string scanners, ryzom/ryzomcore#604 4 years ago
kaetemi aa2574e10a Remove unused custom name, item name is specified already by _PhraseId 4 years ago
kaetemi a2c7c4dc25 Remove unused faction string from item 4 years ago
kaetemi 29f313853d Explicitly use toLowerAscii for filenames and identifiers 4 years ago
kaetemi 625d269c11 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi dc12e2dea3 Explicitly use toLowerAscii for filenames and identifiers 4 years ago
kaetemi ae1f4d2df3 Merge branch 'develop' into ryzomclassic-develop 4 years ago
Xtarsia dac3cc2292 inventory alignment adjustments
closes #182
4 years ago
kaetemi 9883454926 Disable item groups, not tested in our build 4 years ago
kaetemi b89441d673 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 35e18597ee Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 6787bbf378 Use localized font 4 years ago
kaetemi a3e762f401 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 380722e2e6 Remove ucstring from lua and UI 4 years ago
kaetemi d11936a035 Remove compatibility switch 4 years ago
kaetemi c791fe5742 Merge branch 'develop' into ryzomclassic-develop 4 years ago
Xtarsia 5de288a2e7 Update out_v2_select.xml
disable downloader UI
4 years ago
kaetemi c08163dcb6 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi ea6ba2ec97 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 9c6918d448 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 9cc899a3a6 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi e773027c6d Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 3e675b1422 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 5934147d9e Fix identity title, kaetemi/ryzomclassic#170 4 years ago
Xtarsia 4ca95e1188 Update out_v2_select.xml
closes #117
4 years ago
kaetemi 0499fce27d Fix login alignment 4 years ago
kaetemi 2295769ad5 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 1cfe858588 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 374601e8d1 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi d86c000de2 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi fa086ea4b9 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi dcf242c3b1 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi d31eb606eb Fix merge 4 years ago
kaetemi 46020d345c Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 2b2b0a7d48 Merge branch 'develop' into ryzomclassic-develop 4 years ago
Xtarsia 277a854f8d Update widgets.xml
Closes #157
4 years ago
kaetemi 52c7c16f69 Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 92ee96a783 Log the recorded history, kaetemi/ryzomclassic#152 4 years ago
kaetemi b61ad76ac2 Fix R2 feature info checkbox, kaetemi/ryzomclassic#158 4 years ago
Xtarsia 7a9accde11 Update info_player.xml
closes #160
4 years ago
kaetemi d0f9685ee8 Merge branch 'develop' into ryzomclassic-develop 4 years ago
Xtarsia a2b68113ec Remove Patcher UI elements
Remove Patcher UI elements
4 years ago
kaetemi ec4e2e188e Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 9580bd5ec0 Failed to detect ecosystem of selected island, fix missing plants in palette, kaetemi/ryzomclassic#132 4 years ago
kaetemi d2900df0f6 Add debug break hook for Lua 4 years ago
kaetemi ae876e481a Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 8594b479e2 Fix bad escaping of < and >, fix kaetemi/ryzomclassic#150 4 years ago
Jan Boon fbab39451f
Merge pull request #146 from Xtarsia/ryzomclassic-develop
Update inventory.xml
4 years ago
kaetemi 05501cf30b Merge branch 'develop' into ryzomclassic-develop 4 years ago
kaetemi 357bb28ef2 Recycling an ucstring from i18n.get is not allowed, it's const, fix kaetemi/ryzomclassic#134 4 years ago
kaetemi 5056d3a72a Disable CustomNpc Level prop for now, kaetemi/ryzomclassic#154 4 years ago
kaetemi 91a44fd5b5 Disable TypeNPC for now, kaetemi/ryzomclassic#154 4 years ago
kaetemi a51597cf0b Typo, kaetemi/ryzomclassic#87 4 years ago
kaetemi f5553dfb59 Better handling of TypeNPC initialization, kaetemi/ryzomclassic#87 4 years ago
kaetemi b4dc60f163 Fix double undo stack actions, kaetemi/ryzomclassic#87 4 years ago
kaetemi 2859693c1e Remove OtherCharAccess toggle from Scenario window when MD5 checks are disabled, close kaetemi/ryzomclassic#151 4 years ago
kaetemi 6853098df9 Additional debugging, kaetemi/ryzomclassic#152 4 years ago
kaetemi c71f516ed2 Avoid more useless `fullName` calls, kaetemi/ryzomclassic#152 4 years ago
kaetemi ccb141672f Avoid some unnecessary string operations when not recording history, cleanup, debug crash in `fullName` kaetemi/ryzomclassic#152 4 years ago
kaetemi 4a7a153a3e Disable check for OtherCharAccess if CheckR2ScenarioMD5 is false, kaetemi/ryzomclassic#151 4 years ago
kaetemi e3ec67a698 Disable R2 MD5 check, it's useless now, fix kaetemi/ryzomclassic#147 4 years ago
kaetemi 505e13cd1e Merge branch 'develop' into ryzomclassic-develop 4 years ago
Riasan fe314dbd5d Merge remote-tracking branch 'remotes/origin/fixes' into yubo 4 years ago
Nuno 8dae8c396a Merge remote-tracking branch 'SIELA1915/second-action-bar-editable' into yubo 4 years ago
Ulukyn 14923fb1a9 Merge remote-tracking branch 'SIELA1915/friend_list_groups_and_notes' into yubo 4 years ago
Ulukyn f3c9128344 Merge remote-tracking branch 'SIELA1915/friend_list_groups_and_notes' into yubo 4 years ago
Ulukyn 3d6869fbae Merge branch 'yubo' into SIELA1915/friend_list_groups_and_notes 4 years ago
Ulukyn 2587efa183 Merge remote-tracking branch 'SIELA1915/friend_list_groups_and_notes' into yubo 4 years ago
Ulukyn fd0715a639 Merge remote-tracking branch 'SIELA1915/friend_list_groups_and_notes' into yubo 4 years ago
Ulukyn 4e551ae90a Merge branch 'second-action-bar-editable' into yubo 4 years ago
Ulukyn 977a77bf38 Merge remote-tracking branch 'SIELA1915/move-group-with-zig' into yubo 4 years ago
Ulukyn 006ab4fb46 Merge branch 'translation-original-message-by-default-option' into yubo 4 years ago
Ulukyn 3d55b0a332 Merge remote-tracking branch 'SIELA1915/friend_list_groups_and_notes' into yubo 4 years ago
Xtarsia 14a0c5d471 Update inventory.xml
Remove Special items from inventory.
4 years ago
Ulukyn 525d04266c Merge branch 'ryzom/patch-changes' into yubo 4 years ago
Riasan 62e633dd36 Merge remote-tracking branch 'remotes/origin/ryzom/ui/improvements' into yubo 4 years ago
Riasan d60f91c60c Merge remote-tracking branch 'remotes/origin/fixes' into yubo 4 years ago
Ulukyn c3f22e83e7 Merge remote-tracking branch 'origin/feature/hires-textures' into yubo 4 years ago
Ulukyn f88796b575 Merge branch 'fix_opengl_on_mac' into yubo 4 years ago
Ulukyn 222e2c5f77 Merge branch 'fixes' into yubo 4 years ago
Riasan b3099dcc9d Merge remote-tracking branch 'remotes/origin/fix_opengl_on_mac' into yubo 4 years ago
Ulukyn b4b61b17c5 Merge branch 'fixes' into yubo 4 years ago
Ulukyn eab140850e Merge branch 'ryzom/ui/improvements' into yubo 4 years ago
Ulukyn c66a536457 Merge branch 'storyline/s2e0' into yubo 4 years ago
Ulukyn 2d4077b43b Merge branch 'ryzom/lua-features' into yubo 5 years ago
Ulukyn edf77cb301 Added: getSheetShape lua command 5 years ago
Ulukyn 628a27bae6 Merge branch 'atys' into ryzom/lua-features 5 years ago
kaetemi 7a035466da Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 64fd9f0b78 Merge remote-tracking branch 'ryzomcore/develop' into temp/more-patches-26 5 years ago
kaetemi a7933bc818 Fix admin commands for items to use .sitem by default 5 years ago
kaetemi 669237dbae Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi a606684e34 Use nel type 5 years ago
kaetemi 4b4c14dabf Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 7e232462d0 Invalid table insertion, fix kaetemi/ryzomclassic#124 5 years ago
kaetemi 09cb0ea5d0 Can't reinterpret float pointer as size_t pointer as the sizes mismatch, fix ryzom/ryzomcore#605 switch case on 64bit, ref kaetemi/ryzomclassic#124 5 years ago
kaetemi f5eae12b80 Enhance logging message 5 years ago
kaetemi 1452a6ba6d Fix saveScenarioRtData for large scenarios 5 years ago
kaetemi a6713b14a6 Compare tag for creating bnp, since bnp get older timestamp reset if they match 5 years ago
kaetemi b505ff9e13 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 154ae55165 Fix string format 5 years ago
kaetemi ada4e5bfbf Use better fonts 5 years ago
kaetemi fb3e97db1d Request for 7z instead of tgz, ref ryzom/ryzomcore#586 5 years ago
kaetemi 61974ec15c Add 7z support to server patch, ref ryzom/ryzomcore#586 5 years ago
kaetemi af6c6b64c3 Revert workaround, fix ryzom/ryzomcore#601 5 years ago
kaetemi 0528df7f0b Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 18d2e393cf Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 3da77ce061 Play specific music during character selection 5 years ago
kaetemi 90e1297c1d Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 90931485ba Track online services in WS based on TServiceId instead of a counter, fix ryzom/ryzomcore#601 5 years ago
kaetemi 195e9b1439 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 0f50806927 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 7d01d8411d Replace deprecated table.getn 5 years ago
kaetemi c1a3008ca0 Removed ecosystem points 5 years ago
kaetemi 3f39669c9a Remove unused project 5 years ago
kaetemi 51ec683eea Merge branch 'feature/code-to-root' into ryzomclassic-develop 5 years ago
kaetemi ddc9cdabc4 Retarget to R:\leveldesign and R:\graphics 5 years ago
kaetemi 324c69c8cc Merge branch 'feature/code-to-root' into ryzomclassic-develop 5 years ago
kaetemi 05fdc723f1 Move code to root 5 years ago
Jan Boon 4a55facb0c Merge branch 'feature/code-to-root' into ryzomclassic-develop 5 years ago
kaetemi def3d25249 Set proper dependencies for packed collision build 5 years ago
kaetemi f32a5d95d4 Export zones as part of the R2 islands xml 5 years ago
kaetemi 5f3675446c Build R2 islands xml separately per continent, and build it properly 5 years ago
kaetemi f39a7fe349 Temporarily set Direct3D as default on Windows, ref ryzom/ryzomcore#592 5 years ago
kaetemi 3117c55424 Remove leveldesign duplicate files 5 years ago
Jan Boon 185d71365e Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 02c40934ef Remove references to things which don't exist 5 years ago
kaetemi f892608865 Fix ring scenario edition mode initialization 5 years ago
Jan Boon 9d1545bbe2 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 71a22b43db Fixes 5 years ago
kaetemi 5a543239bb Batch of fixes for server 5 years ago
Jan Boon 6cdee90e4e Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 17d91ad243 Add configuration for open admin privileges 5 years ago
kaetemi 33bf80a3c7 Merge remote-tracking branch 'ryzomcore/develop' into ryzomclassic-develop 5 years ago
Jan Boon 1f7fca7df3 Merge branch 'develop' into ryzomclassic-develop 5 years ago
Jan Boon a964da41f7 Various fixes or adjustments 5 years ago
kaetemi a900a45153 More useful logging 5 years ago
kaetemi 0cfe43aa26 Fix editor far tp in character select 5 years ago
kaetemi 3e7035c6dd Force invalid enum values to defaults 5 years ago
kaetemi ea021e1d96 Fix module bitsets and default session values 5 years ago
kaetemi 55c3939789 Use shard ID as part of shared memory key in MS to allow multiple shards on one server 5 years ago
kaetemi 7a71caca6e Fix filename collision of string cache between shards on the same host 5 years ago
kaetemi 9dc0020b61 Fix CSheetId from CVariable 5 years ago
kaetemi c7b27c8d70 Fix filename collision of string cache between shards on the same host 5 years ago
kaetemi 6c6a83bc5d Categorize mirror service commands 5 years ago
Jan Boon 93f6770fe4 Merge branch 'develop' into ryzomclassic-develop 5 years ago
Jan Boon a94094f865 Merge branch 'develop' into ryzomclassic-develop 5 years ago
Jan Boon 746f033b5c Merge remote-tracking branch 'ryzomcore/develop' into ryzomclassic-develop 5 years ago
Jan Boon 5d7e4a921f Merge remote-tracking branch 'ryzomcore/develop' into ryzomclassic-develop 5 years ago
Jan Boon f48f4d4555 Merge remote-tracking branch 'ryzomcore/develop' into ryzomclassic-develop 5 years ago
Jan Boon 31e1cd6feb Merge remote-tracking branch 'ryzomcore/develop' into ryzomclassic-develop 5 years ago
Jan Boon 107728c944 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 4053220060 Continent sheet is name by default 5 years ago
kaetemi 525db6976a Disable forage tool restriction 5 years ago
kaetemi f344c0568c Adjust continent sheet name 5 years ago
kaetemi 2d32bc2371 Disable craft tool restriction, ryzomclassic/#49 5 years ago
kaetemi 9d89d3dfca Finer text alignment, ryzomclassic/#36 5 years ago
kaetemi 024447d9fb Cleanup enchant context, ryzomclassic/#37 5 years ago
kaetemi d496d54ac4 Add item log context for creating sap recharge 5 years ago
kaetemi aec03f6234 Add item logging context for enchanting items 5 years ago
kaetemi 1dce83d279 Remove ring knowledge and faction pvp points from profile info 5 years ago
kaetemi 774b91df9c Classy login screen 5 years ago
kaetemi d5b959db7e Remove useless command 5 years ago
kaetemi b547fd62cb Revert icon 5 years ago
kaetemi eecd6f1f2c Don't log since it's already logged from offline command, ryzomclassic/#44 5 years ago
kaetemi 3f982c2214 Shopping list delete doesn't need log, but it should be checked why it's containing items, ryzomclassic/#44, ryzomclassic/#26 5 years ago
kaetemi b232d0026a Reduce logging 5 years ago
kaetemi be32f02a76 Set font 5 years ago
Jan Boon 48bc27c1e3 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 38a7b763d0 Classic backgrounds 5 years ago
kaetemi f18f4196b4 Further adjust handling of ryzomclassic/#31 temp bag take all 5 years ago
kaetemi 35a9e747f7 Experimental alternate fix for ryzomclassic/#31 5 years ago
kaetemi 8f1d0ebf23 Fix recursing endHarvest call, ryzomclassic/#31 5 years ago
kaetemi dabf75dbcf Add log context for bot chat end, ryzomclassic/#26 5 years ago
kaetemi a722988987 Remove unused salt from admin 5 years ago
kaetemi c914e6fdf6 Patch over https 5 years ago
kaetemi ad4290f2c9 Move fonts to assets 5 years ago
kaetemi 739730127d Revert profile interface 5 years ago
kaetemi 2cb353438b Add log context for sale store check 5 years ago
kaetemi 46786a1185 Fix comment 5 years ago
kaetemi 8daffed6c2 Cleanup odd patch, fix dyn chat choice progress 5 years ago
kaetemi 2a917ede27 Register crystallize log context for ryzomclassic/#14 5 years ago
Jan Boon 31a819f254 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi ad15ada3ef Ring ring 5 years ago
kaetemi 2927b3dfb9 Bulk disable webig changes 5 years ago
kaetemi e0a14d79ac Disable more of the pet name code 5 years ago
kaetemi ba3c008767 Add handy startsWith string utility function 5 years ago
kaetemi 8c6677dba6 Disable pet name since it's only accessible through admin and web 5 years ago
kaetemi b6dbb65918 These upgrades don't apply to us 5 years ago
Jan Boon 4d742741d1 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 8dd7c52f8a Code style 5 years ago
kaetemi fcfc86c83e Disable teleport fx, since we will not have allegiance. May be better to have it depend on the teleport ticket type 5 years ago
kaetemi f36c979c2e Remove altar restriction, fix ryzomclassic/#16 5 years ago
kaetemi 8bcccefd11 Re-enable warnings 5 years ago
kaetemi 71c7e31806 We don't have light_sap_recharge.sitem, so remove it 5 years ago
kaetemi 6d5eb14d4f Revert to old sap recharge 5 years ago
kaetemi 52d8304659 Remove string based and webig feature 5 years ago
kaetemi 3cfedfcf9a Remove hardcoded name based item rule 5 years ago
kaetemi 0b47322d6c Remove hardcoded item rule 5 years ago
kaetemi bfed12711d Enable callstack logging 5 years ago
kaetemi 84e924b496 Fix ryzomclassic/#14 crash on spell crystalize. Add TLogContext_Item_EnchantPhrase log context 5 years ago
kaetemi 613bb7ccd0 Fix snp download over https 5 years ago
kaetemi 623ffc6be7 Debug logs should not be disabled in DEV client... 5 years ago
kaetemi 319ad4b0bf Set patch urls 5 years ago
kaetemi de6eae7e0f Fix again. This needs to be fixed properly 5 years ago
kaetemi b159620fcc This needs to be generated in utf8 5 years ago
kaetemi 0e08489315 Fix adjustment for classic newbieland 5 years ago
kaetemi 2ad9e1c78a Todo. Fix this properly 5 years ago
kaetemi 8d7ce91b56 Cleanup 5 years ago
kaetemi 2d1d9c1b0b Regenerate server cdb 5 years ago
kaetemi 85e7b594c6 Add a note 5 years ago
kaetemi f980988ae4 Switch to old newbieland 5 years ago
kaetemi ee8ccf13b7 Useless empty file 5 years ago
kaetemi 8895eb88d6 Revert "Added: New PvpClan "Marauder" based on fame "black_kami"" 5 years ago
kaetemi 679c7d7ac3 Don't need this 5 years ago
kaetemi ba6378e07c Remove useless feature 5 years ago
kaetemi b06b0fb08c Merge fixes 5 years ago
kaetemi 81176f102f Revert to fixed version 5 years ago
Jan Boon 2ad1b76886 Adjust default config 5 years ago
Jan Boon b0fdfaeca9 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 4c7c240775 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi ff87af8423 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi afee5db9e2 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 0bae206bb2 Fix merges 5 years ago
kaetemi c57c9a1cf6 Build fix 5 years ago
Jan Boon 0c8e9f7640 Merge branch 'feature/streamed-package' into ryzomclassic-develop 5 years ago
kaetemi 2b80ec75a9 Merge remote-tracking branch 'ryzomcore/hg/hotfix/patches-from-atys' into ryzomclassic-develop 5 years ago
kaetemi 0a2ce3c522 Null merge 5 years ago
kaetemi 4ca10eb38c Remove problematic texture defaults 5 years ago
kaetemi 636d8dae55 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi ecc2085b70 Bump NeL version 5 years ago
kaetemi 9b9829a6ab Run pipeline setup in batch file 5 years ago
kaetemi 916be9833c Merge remote-tracking branch 'ryzomcore/hg/develop' into ryzomclassic-develop 5 years ago
kaetemi bb3f4052a7 Merge branch 'develop' into ryzomclassic-develop 5 years ago
kaetemi 439cae285d Merge branch 'develop' of github.com:ryzom/ryzomcore into ryzomclassic-develop 5 years ago
Nimetu ddd0a7507e Fixed: Invalid array access. Crash in gcc with aggressive loop optimizations enabled.
--HG--
branch : patches-from-atys
5 years ago
kaetemi c54897bd4f Fix build with MariaDB connector 5 years ago
kaetemi 94ad75bb72 Add some missing unit test tools 5 years ago
kaetemi 6ed45fef0b Add some missing tools 5 years ago
kaetemi 85c9d4e4b6 Add classic ingame web 5 years ago
kaetemi 7ac4eb3097 Add missing R2 files 5 years ago
kaetemi 2f29d03d86 Junk 5 years ago
kaetemi f64ba76bfc Undo insane XML reformat, and use tabs as originally 5 years ago
kaetemi aa2386151f Undo insane XML reformat 5 years ago
kaetemi 7505fae6d1 Add missing scripts 5 years ago
kaetemi f7bdd7ecd7 Junk 5 years ago
kaetemi d70c4a215d Junk 5 years ago
kaetemi 71a412c698 Merge remote-tracking branch 'ryzomcore/hg/develop' into ryzomclassic-develop 5 years ago
kaetemi 98a41b75bd Junk 5 years ago
kaetemi a86fb4e195 Merge remote-tracking branch 'origin/develop' into ryzomclassic-develop 5 years ago
kaetemi 3ff031b5ff Merge commit '230639bf0ead1a3736aca3af8866aa00f0608074' 5 years ago
Nimetu 249ce945f1 Fixed: Calling member function on null object is undefined behavior.
--HG--
branch : patches-from-atys
5 years ago
Nimetu a6a8cb99f5 Fixed: Truncated pointer on 64bit system
--HG--
branch : patches-from-atys
5 years ago
ulukyn f11bc06541 Changed: updated database_plr.h
--HG--
branch : patches-from-atys
6 years ago
Nimetu 460eb92969 Changed: database_plr.h sync for number of animal
--HG--
branch : patches-from-atys
5 years ago
Nimetu ae68b543b8 Merge with develop
--HG--
branch : patches-from-atys
5 years ago
Inky a5a6c321af Changed: added language text label translation
--HG--
branch : patches-from-atys
6 years ago
Inky 89fa8ca0ac Changed: added language support per profiles
--HG--
branch : patches-from-atys
6 years ago
Inky 9c82a0436f Changed: added QComboBox widget to change profile language
--HG--
branch : patches-from-atys
6 years ago
Inky fb60e00acc Changed: allow tab to select all widgets before been captured by editBox
--HG--
branch : patches-from-atys
6 years ago
Inky 0a48c4a6e3 Fixed: prevent bad index and duplicata after profile deletion
--HG--
branch : patches-from-atys
6 years ago
Nimetu 1eb1b118f3 Fixed: Shield, tools buffs not displayed in tooltip
--HG--
branch : patches-from-atys
6 years ago
Nimetu 3b0324ad08 Fixed: Range/melee weapon buffs not displayed in tooltip
--HG--
branch : patches-from-atys
6 years ago
Inky 4baed9c664 Changed: unsupported language code default fallback
--HG--
branch : patches-from-atys
6 years ago
Inky 41c3d0cbe0 Changed: check locale is supported under linux
--HG--
branch : patches-from-atys
6 years ago
Inky ccfffe0a8c Added: macro context help
--HG--
branch : patches-from-atys
6 years ago
Inky 17b96e4819 Fixed: tooltip item buff update
--HG--
branch : patches-from-atys
6 years ago
Inky 00d31f09c6 Changed: use one lua bind to retrieve itemInfo
--HG--
branch : patches-from-atys
6 years ago
ulukyn 89c22b04a2 Changed: remove nlinfo of Register EId (made lof of useless logs...)
--HG--
branch : patches-from-atys
6 years ago
ulukyn cf4cb55f3e Fixed: remove Zig enter/leave bag menu option when not a pet
--HG--
branch : patches-from-atys
6 years ago
ulukyn 1b19cb4809 Changed: Ctrl tooltips can now display utf8 text
--HG--
branch : patches-from-atys
6 years ago
Inky fe4c58df42 Fixed: other_hand_slot error when macro window is opened
--HG--
branch : patches-from-atys
6 years ago
ulukyn 498c02fa4d Fixed: remove Zig enter/leave bag menu option when not a pet
--HG--
branch : patches-from-atys
6 years ago
ulukyn a7e75b1c6c Added: setTargetAsInterlocutor and unsetTargetAsInterlocutor lua functions
--HG--
branch : patches-from-atys
6 years ago
Inky d73ea16682 Fixed: register lua bind
--HG--
branch : patches-from-atys
6 years ago
Inky 64987e8ed6 Changed: increment packed_sheets version
sitem, item

--HG--
branch : patches-from-atys
6 years ago
Inky 7230a84031 Changed: introduce new proprieties menu and action handler
--HG--
branch : patches-from-atys
6 years ago
Inky 36918ac919 Added: CGroup menu set action handler
--HG--
branch : patches-from-atys
6 years ago
Inky 0683604ada Added: item sheets scroll properties
--HG--
branch : patches-from-atys
6 years ago
Inky 038a3bca96 Added: load xml tp_interface
--HG--
branch : patches-from-atys
6 years ago
Nimetu a3bdd3dda5 Changed: Remove call to old GroupHTML function
--HG--
branch : patches-from-atys
6 years ago
Inky 4121a61c85 Added: display local chat message
--HG--
branch : patches-from-atys
6 years ago
Inky 2f2329c67f Added: get and set rgba database entry
--HG--
branch : patches-from-atys
6 years ago
ulukyn 9780decca0 Added: Player can now ask a pet (zig) to enter/leave from his bag (an icon is displayed when pet is on the bag)
--HG--
branch : patches-from-atys
6 years ago
Inky cad47321a3 Added: set auto-pacts lua bind
--HG--
branch : patches-from-atys
6 years ago
Inky 417865bb3a Added: Store user created channels in xml file
--HG--
branch : patches-from-atys
6 years ago
Ulukyn 36036faffd Added: home propertie of html group (so lua scripts can setup the home)
Fixed: adding new landmarks with lua don't remove respawn points if player is not in an island

--HG--
branch : patches-from-atys
6 years ago
ulukyn c0037fc55a Fixed: removed nlstop when 2 same commands runs (in services)
removed nlassert when factory not found (who crash the fes)

--HG--
branch : patches-from-atys
6 years ago
Inky f96289dfbe Fixed: LevelDesign AI script documentation and few incode typos
--HG--
branch : patches-from-atys
6 years ago
Riasan e794b5dd01 Added: Team Invite button by Guild Member List and Friend List
--HG--
branch : patches-from-atys
6 years ago
ulukyn 11132f08e6 Changed: Players when Outpost is in active war (OutpostInFire) can't be Neutrals
--HG--
branch : patches-from-atys
6 years ago
Riasan 2d83507b55 Changed: active teleport option via map on r2 for privs
--HG--
branch : patches-from-atys
6 years ago
ulukyn 0debc7e6d6 Removed: cacert.pem file from client datas
--HG--
branch : patches-from-atys
6 years ago
ulukyn 698c71f137 Fixed: Added a check for https:// npc web pages
--HG--
branch : patches-from-atys
6 years ago
ulukyn dcf959fe3d Added: luaGetElement for CInterface3DScene and getBBoxSize* for CInterface3DShape
--HG--
branch : patches-from-atys
6 years ago
Nimetu 892d11d2be Fixed: trimSeparators function
--HG--
branch : patches-from-atys
6 years ago
kervala 8f61819d43 Changed: Minor changes
--HG--
branch : patches-from-atys
6 years ago
ulukyn 0e7380599e Added: Ctrl DB Sheet tooltip can be overwrited
--HG--
branch : patches-from-atys
6 years ago
kervala cf1df3e4de Fixed: Warning
--HG--
branch : patches-from-atys
6 years ago
ulukyn 4beecdc81b Eapply: CTypeVersion incremented for sitem and item (because the client don't crash again and i found why )
--HG--
branch : patches-from-atys
6 years ago
ulukyn 0b970371a3 Fixed: check ClientCfg.CurlCABundle is not empty before check the first char (thx nimetu)
--HG--
branch : patches-from-atys
6 years ago
ulukyn 48f3d3b244 Added: add a way to prefix CurlCABundle file with defaultConfigFileName using "%"
Use added cacert.pem from mozilla like default CA file

--HG--
branch : patches-from-atys
6 years ago
ulukyn e9e2590d53 Added: getSheetFamily lua bind
--HG--
branch : patches-from-atys
6 years ago
ulukyn f7f1a6035e Added: getSheetLocalizedName and getSheetLocalizedDesc lua bind
--HG--
branch : patches-from-atys
6 years ago
ulukyn 4f75f92610 Added: Add "@LUA " prefix to url set on shapes with text. When player click on shape, run the lua code
getDbProp64 return a variable instead of node->getValue64() return value.

--HG--
branch : patches-from-atys
6 years ago
ulukyn a50bd10b84 Added: setDbProp64 lua function
--HG--
branch : patches-from-atys
6 years ago
ulukyn 57406f6a8c Added: luaSetModalParentList method for container
--HG--
branch : patches-from-atys
6 years ago
ulukyn 65acd3bf9d Added: Fix a bug with web textures on view_bitmap. The texture must keep the case, only texture from bnp can be convert to lower case
--HG--
branch : patches-from-atys
6 years ago
ulukyn 16ce2e454c Added: add an prefiex "u:" to ask tooltip and hardcode_text to use utf8 strings
--HG--
branch : patches-from-atys
6 years ago
ulukyn c7bdaf513c Changed: use trimSeparators to remove spaces and tabs in html styles args values
--HG--
branch : patches-from-atys
6 years ago
ulukyn 724158c74c Added: trimSeparators function to prevent trim of utf8 special chars. Currently trimSeparators only trim spaces and tabs.
--HG--
branch : patches-from-atys
6 years ago
Nuno Gonçalves ed798cb62a Add new Mektoub type used for new pets companions
--HG--
branch : patches-from-atys
6 years ago
ulukyn 971287ae78 Changed: Added new fame for marauder (generated from database.xml)
--HG--
branch : patches-from-atys
7 years ago
ulukyn c56d2e136d Changed: Increse MAX_INVENTORY_ANIMAL to 7 to add 3 pets companions (ingame named ZIGs)
--HG--
branch : patches-from-atys
6 years ago
ulukyn 3652b23bbb Added: Race shape properties of sitems (!!! sitems.packed_sheets must be regenerated with freshly complilated sheets_packer tool !!!)
--HG--
branch : patches-from-atys
6 years ago
ulukyn 8b1ead9e77 Fixed: getGroundZ uses now float instead of int
--HG--
branch : patches-from-atys
7 years ago
ulukyn 5d7c8777a1 Added: Ability to add icons on the map and setup the handler by left and right click with lua
--HG--
branch : patches-from-atys
7 years ago
ulukyn 1a52cc3cb1 Changed: move /url command to FINAL_VERSION section
--HG--
branch : patches-from-atys
7 years ago
ulukyn 0093170ee9 Added: onclick_r and onover Lua reflect properties. Setup id to buttonGroup to access it
--HG--
branch : patches-from-atys
7 years ago
ulukyn 50d6ae91ae Changed: Increase max number of virtual desktops to use with special apps (like powo creator)
--HG--
branch : patches-from-atys
7 years ago
ulukyn af6975ae11 Added: onclick_r and onover Lua reflect properties. Setup id to buttonGroup to access it
--HG--
branch : patches-from-atys
7 years ago
ulukyn 0b0b980510 Changed: Fix @WEB customtext items
--HG--
branch : patches-from-atys
7 years ago
ulukyn f917d22b71 Changed: Fix @WEB customtext items
--HG--
branch : patches-from-atys
7 years ago
ulukyn 61cee990fc Changed: Fix @WEB customtext items
--HG--
branch : patches-from-atys
7 years ago
ulukyn fd458d5751 Added: setBackground lua method for group_html
--HG--
branch : patches-from-atys
7 years ago
ulukyn@gmail.com 5c41e79ce0 Added: Add new html properties of group_html
--HG--
branch : patches-from-atys
7 years ago
Riasan 0b27a27a4c Fixed: Old Custom Text what used @WEB have no space after command "@WEBxxx"
--HG--
branch : patches-from-atys
7 years ago
ulukyn@gmail.com 4f33715b06 Added: We can now set Item Custom Text with "@LUA xxx" to run lua code when players click on "OPEN" menu
--HG--
branch : patches-from-atys
7 years ago
ulukyn@gmail.com b623bb11f5 Fixed: Adding translation to bots names (with tags) when displaying "xxx says: ..."
--HG--
branch : patches-from-atys
7 years ago
ulukyn@gmail.com 3baf7fdb12 Fixed: First try to add translation tags into Bot names and Titles: translating target name and sys infos
--HG--
branch : patches-from-atys
7 years ago
ulukyn@gmail.com 4c91c418d4 Fixed: First try to add translation tags into Bot names and Titles (will help rename of player to be translated and events npcs)
--HG--
branch : patches-from-atys
7 years ago
ulukyn@gmail.com 99a949b889 Changed: First try to add translation tags into Bot names and Titles (will help rename of player to be translated and events npcs)
--HG--
branch : patches-from-atys
7 years ago
kaetemi 998daa5c56 Add additional nullable
--HG--
branch : cdb-packed
10 years ago
kaetemi a3a347fab4 Add optional null bit to CDB leafs
--HG--
branch : cdb-packed
10 years ago
kaetemi ba42ed3320 Merge with default
--HG--
branch : cdb-packed
10 years ago
kaetemi 1359bbf8c2 (DB_INIT:PLR from 5364 -> 1810 bytes)
--HG--
branch : cdb-packed
10 years ago
kaetemi 5d9f3ce668 Optimize for more common case
--HG--
branch : cdb-packed
10 years ago
kaetemi 9fec239dfb Missed 4 bits
--HG--
branch : cdb-packed
10 years ago
kaetemi 06e9d20850 Add PACKED type to CDB for brick bitfields
--HG--
branch : cdb-packed
10 years ago

18
.gitattributes vendored

@ -0,0 +1,18 @@
*.cpp ident
*.h ident
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
*.cs text
*.jade text
*.json text
*.js text
*.css text
*.htm text
*.txt text
*.sh text eol=lf

1
.gitignore vendored

@ -267,6 +267,7 @@ web/public_php/db_version_tool
web/public_php/db_version_web
web/public_php/role_service
web/public_php/role_support
web/public_php/role_admin
web/public_php/role_domain
web/public_php/db_version_ring
web/public_php/config_user.php

@ -79,8 +79,8 @@ ENDIF()
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(RyzomCore CXX C)
SET(NL_VERSION_MAJOR 1)
SET(NL_VERSION_MINOR 1)
SET(NL_VERSION_MAJOR 4)
SET(NL_VERSION_MINOR 0)
SET(NL_VERSION_PATCH 0 CACHE STRING "Patch version")
SET(YEAR "2001-${CURRENT_YEAR}")
SET(AUTHOR "Winch Gate and The Ryzom Core Community")
@ -124,14 +124,14 @@ RYZOM_SETUP_PREFIX_PATHS()
#-----------------------------------------------------------------------------
# Default values for URL's
SET(RYZOM_CLIENT_CREATE_ACCOUNT_URL "https://open.ryzom.dev/ams/" CACHE STRING "Ryzom Client Create Account URL")
SET(RYZOM_CLIENT_EDIT_ACCOUNT_URL "https://open.ryzom.dev/ams/" CACHE STRING "Ryzom Client Edit Account URL")
SET(RYZOM_CLIENT_FORGET_PASSWORD_URL "https://open.ryzom.dev/ams/" CACHE STRING "Ryzom Client Forget Password URL")
SET(RYZOM_CLIENT_PATCH_URL "https://cdn.ryzom.dev/open/patch/" CACHE STRING "Ryzom Client Patch URL")
SET(RYZOM_CLIENT_APP_NAME "default")
SET(RYZOM_CLIENT_CREATE_ACCOUNT_URL "https://core.ryzom.dev/ams/" CACHE STRING "Ryzom Client Create Account URL")
SET(RYZOM_CLIENT_EDIT_ACCOUNT_URL "https://core.ryzom.dev/ams/" CACHE STRING "Ryzom Client Edit Account URL")
SET(RYZOM_CLIENT_FORGET_PASSWORD_URL "https://core.ryzom.dev/ams/" CACHE STRING "Ryzom Client Forget Password URL")
SET(RYZOM_CLIENT_PATCH_URL "https://cdn.ryzom.dev/core4/patch/" CACHE STRING "Ryzom Client Patch URL")
SET(RYZOM_CLIENT_APP_NAME "core4")
SET(RYZOM_WEBIG_MAIN_URL "https://open.ryzom.dev/" CACHE STRING "Ryzom Client WebIG Main URL")
SET(RYZOM_WEBIG_TRUSTED_DOMAIN "open.ryzom.dev" CACHE STRING "Ryzom Client WebIG Trusted Domain")
SET(RYZOM_CLIENT_RELEASENOTES_URL "https://core4.ryzom.dev/releasenotes/index.php" CACHE STRING "Ryzom Client Release Notes URL")
SET(RYZOM_CLIENT_RELEASENOTES_RING_URL "https://core4.ryzom.dev/releasenotes_ring/index.php" CACHE STRING "Ryzom Client Release Notes URL")
#-----------------------------------------------------------------------------
# urls when compiling ryzom live client
@ -145,6 +145,9 @@ IF(WITH_RYZOM_LIVE)
SET(RYZOM_WEBIG_MAIN_URL "https://app.ryzom.com/")
SET(RYZOM_WEBIG_TRUSTED_DOMAIN "app.ryzom.com")
SET(RYZOM_CLIENT_RELEASENOTES_URL "https://app.ryzom.com/releasenotes/index.php")
SET(RYZOM_CLIENT_RELEASENOTES_RING_URL "https://app.ryzom.com/releasenotes_ring/index.php")
ENDIF()
#-----------------------------------------------------------------------------

@ -16,7 +16,14 @@ ENDIF (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
FIND_PATH(ICONV_INCLUDE_DIR iconv.h HINTS /sw/include/ PATHS /opt/local)
FIND_LIBRARY(ICONV_LIBRARIES NAMES iconv libiconv c PATHS /opt/local)
FIND_LIBRARY(ICONV_LIBRARIES_RELEASE NAMES iconv libiconv c PATHS /opt/local)
FIND_LIBRARY(ICONV_LIBRARIES_DEBUG NAMES iconvd libiconvd c PATHS /opt/local)
IF (ICONV_LIBRARIES_RELEASE AND ICONV_LIBRARIES_DEBUG)
SET(ICONV_LIBRARIES optimized ${ICONV_LIBRARIES_RELEASE} debug ${ICONV_LIBRARIES_DEBUG})
ELSE()
SET(ICONV_LIBRARIES ${ICONV_LIBRARIES_RELEASE})
ENDIF()
IF(ICONV_INCLUDE_DIR AND ICONV_LIBRARIES)
SET(ICONV_FOUND TRUE)
@ -60,5 +67,6 @@ ENDIF()
MARK_AS_ADVANCED(
ICONV_INCLUDE_DIR
ICONV_LIBRARIES
ICONV_LIBRARIES_DEBUG
ICONV_SECOND_ARGUMENT_IS_CONST
)

@ -38,11 +38,25 @@ find_path(LUA_INCLUDE_DIR lua.h
/opt
)
find_library(LUA_LIBRARY
FIND_LIBRARY(LUA_LIBRARY
NAMES lua53 lua5.3 lua-5.3 lua
HINTS
ENV LUA_DIR
PATH_SUFFIXES lib
$ENV{LUA_DIR}
PATH_SUFFIXES lib64 lib
PATHS
~/Library/Frameworks
/Library/Frameworks
/sw
/opt/local
/opt/csw
/opt
)
FIND_LIBRARY(LUA_LIBRARY_DEBUG
NAMES lua53-d lua5.3-d lua-5.3-d lua-d lua53d lua5.3d lua-5.3d luad
HINTS
$ENV{LUA_DIR}
PATH_SUFFIXES lib64 lib
PATHS
~/Library/Frameworks
/Library/Frameworks
@ -59,7 +73,11 @@ if(LUA_LIBRARY)
set( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries")
# For Windows and Mac, don't need to explicitly include the math library
else()
set( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries")
if (LUA_LIBRARY_DEBUG)
set( LUA_LIBRARIES optimized ${LUA_LIBRARY} debug ${LUA_LIBRARY_DEBUG} CACHE STRING "Lua Libraries")
else()
set( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries")
endif()
endif()
endif()
@ -77,5 +95,5 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua53
REQUIRED_VARS LUA_LIBRARIES LUA_INCLUDE_DIR
VERSION_VAR LUA_VERSION_STRING)
mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARIES LUA_LIBRARY LUA_MATH_LIBRARY)
mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARIES LUA_LIBRARY LUA_LIBRARY_DEBUG LUA_MATH_LIBRARY)

@ -0,0 +1,99 @@
# Locate Lua library
# This module defines
# LUA54_FOUND, if false, do not try to link to Lua
# LUA_LIBRARIES
# LUA_INCLUDE_DIR, where to find lua.h
# LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)
#
# Note that the expected include convention is
# #include "lua.h"
# and not
# #include <lua/lua.h>
# This is because, the lua location is not standardized and may exist
# in locations other than lua/
#=============================================================================
# Copyright 2007-2009 Kitware, Inc.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
find_path(LUA_INCLUDE_DIR lua.h
HINTS
ENV LUA_DIR
PATH_SUFFIXES include/lua54 include/lua5.4 include/lua-5.4 include/lua include
PATHS
~/Library/Frameworks
/Library/Frameworks
/sw # Fink
/opt/local # DarwinPorts
/opt/csw # Blastwave
/opt
)
FIND_LIBRARY(LUA_LIBRARY
NAMES lua54 lua5.4 lua-5.4 lua
HINTS
$ENV{LUA_DIR}
PATH_SUFFIXES lib64 lib
PATHS
~/Library/Frameworks
/Library/Frameworks
/sw
/opt/local
/opt/csw
/opt
)
FIND_LIBRARY(LUA_LIBRARY_DEBUG
NAMES lua54-d lua5.4-d lua-5.4-d lua-d lua54d lua5.4d lua-5.4d luad
HINTS
$ENV{LUA_DIR}
PATH_SUFFIXES lib64 lib
PATHS
~/Library/Frameworks
/Library/Frameworks
/sw
/opt/local
/opt/csw
/opt
)
if(LUA_LIBRARY)
# include the math library for Unix
if(UNIX AND NOT APPLE AND NOT BEOS)
find_library(LUA_MATH_LIBRARY m)
set( LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}" CACHE STRING "Lua Libraries")
# For Windows and Mac, don't need to explicitly include the math library
else()
if (LUA_LIBRARY_DEBUG)
set( LUA_LIBRARIES optimized ${LUA_LIBRARY} debug ${LUA_LIBRARY_DEBUG} CACHE STRING "Lua Libraries")
else()
set( LUA_LIBRARIES "${LUA_LIBRARY}" CACHE STRING "Lua Libraries")
endif()
endif()
endif()
if(LUA_INCLUDE_DIR AND EXISTS "${LUA_INCLUDE_DIR}/lua.h")
file(STRINGS "${LUA_INCLUDE_DIR}/lua.h" lua_version_str REGEX "^#define[ \t]+LUA_RELEASE[ \t]+\"Lua .+\"")
string(REGEX REPLACE "^#define[ \t]+LUA_RELEASE[ \t]+\"Lua ([^\"]+)\".*" "\\1" LUA_VERSION_STRING "${lua_version_str}")
unset(lua_version_str)
endif()
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
# all listed variables are TRUE
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua54
REQUIRED_VARS LUA_LIBRARIES LUA_INCLUDE_DIR
VERSION_VAR LUA_VERSION_STRING)
mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARIES LUA_LIBRARY LUA_LIBRARY_DEBUG LUA_MATH_LIBRARY)

@ -10,18 +10,32 @@ MACRO(FIND_CORRECT_LUA_VERSION)
IF(LUABIND_LIBRARY_RELEASE MATCHES "\\.so")
INCLUDE(CheckDepends)
# check for Lua 5.3
SET(LUA53_LIBRARIES liblua5.3 liblua-5.3 liblua.so.5.3)
# check for Lua 5.4
SET(LUA54_LIBRARIES liblua5.4 liblua-5.4 liblua.so.5.4)
FOREACH(_LIB ${LUA53_LIBRARIES})
FOREACH(_LIB ${LUA54_LIBRARIES})
CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE _LIB LUALIB_FOUND)
IF(LUALIB_FOUND)
MESSAGE(STATUS "Luabind is using Lua 5.3")
FIND_PACKAGE(Lua53 REQUIRED)
MESSAGE(STATUS "Luabind is using Lua 5.4")
FIND_PACKAGE(Lua54 REQUIRED)
BREAK()
ENDIF()
ENDFOREACH()
IF(NOT LUALIB_FOUND)
# check for Lua 5.3
SET(LUA53_LIBRARIES liblua5.3 liblua-5.3 liblua.so.5.3)
FOREACH(_LIB ${LUA53_LIBRARIES})
CHECK_LINKED_LIBRARY(LUABIND_LIBRARY_RELEASE _LIB LUALIB_FOUND)
IF(LUALIB_FOUND)
MESSAGE(STATUS "Luabind is using Lua 5.3")
FIND_PACKAGE(Lua53 REQUIRED)
BREAK()
ENDIF()
ENDFOREACH()
ENDIF()
IF(NOT LUALIB_FOUND)
# check for Lua 5.2
SET(LUA52_LIBRARIES liblua5.2 liblua-5.2 liblua.so.5.2)

@ -393,6 +393,7 @@ MACRO(NL_SETUP_RYZOM_DEFAULT_OPTIONS)
OPTION(WITH_LUA51 "Build Ryzom Core using Lua 5.1" ON )
OPTION(WITH_LUA52 "Build Ryzom Core using Lua 5.2" OFF)
OPTION(WITH_LUA53 "Build Ryzom Core using Lua 5.3" OFF)
OPTION(WITH_LUA54 "Build Ryzom Core using Lua 5.4" OFF)
OPTION(WITH_RYZOM_CLIENT_UAC "Ask to run as Administrator" OFF)
OPTION(WITH_RYZOM_PATCH "Enable Ryzom in-game patch support" OFF)
OPTION(WITH_RYZOM_CUSTOM_PATCH_SERVER "Only use patch server from CFG file" OFF)

@ -42,6 +42,9 @@
#cmakedefine RYZOM_WEBIG_MAIN_URL "${RYZOM_WEBIG_MAIN_URL}"
#cmakedefine RYZOM_WEBIG_TRUSTED_DOMAIN "${RYZOM_WEBIG_TRUSTED_DOMAIN}"
#cmakedefine RYZOM_CLIENT_RELEASENOTES_RING_URL "${RYZOM_CLIENT_RELEASENOTES_RING_URL}"
#cmakedefine RYZOM_CLIENT_RELEASENOTES_URL "${RYZOM_CLIENT_RELEASENOTES_URL}"
#cmakedefine AUTHOR "${AUTHOR}"
#cmakedefine YEAR "${YEAR}"
#cmakedefine COPYRIGHT "${COPYRIGHT}"

@ -85,7 +85,10 @@ namespace NLGUI
/// Language code of the browser( e.g.: en, hu )
std::string languageCode;
/// List of domains the widget can consider secure.
std::vector< std::string > trustedDomains;
std::vector<std::string> trustedDomains;
/// Web server
std::string webServer;
std::string webServerDomain;
/// Maximum concurrent MultiCurl connections per CGroupHTML instance
sint32 curlMaxConnections;

@ -99,6 +99,8 @@ namespace NLGUI
// Get the number of active children
uint getNumActiveChildren() const;
uint getMaxElements() const { return _MaxElements; }
/**
* set the template that will be used to add text;
* \templ : a CViewText object. Only its font size, color and shadow are required.

@ -3,7 +3,7 @@
//
// This source file has been modified by the following contributors:
// Copyright (C) 2013-2014 Laszlo KIS-ADAM (dfighter) <dfighter1985@gmail.com>
// Copyright (C) 2019 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
// Copyright (C) 2019-2020 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
@ -383,7 +383,6 @@ namespace NLGUI
void dummySet(const std::string &value);
public:
// export some properties
REFLECT_EXPORT_START(CInterfaceElement, CReflectable)
REFLECT_BOOL ("active", getActive, setActive);
@ -398,6 +397,7 @@ namespace NLGUI
REFLECT_SINT32 ("h_real", getHReal, dummySet);
REFLECT_STRING ("id", getIdByValue, dummySet);
REFLECT_STRING ("sizeref", getSizeRefAsString, setSizeRef);
REFLECT_STRING ("posparent", getPosParent, setPosParent);
REFLECT_LUA_METHOD("updateCoords", luaUpdateCoords);
REFLECT_LUA_METHOD("invalidateCoords", luaInvalidateCoords);
REFLECT_LUA_METHOD("invalidateContent", luaInvalidateContent);
@ -524,6 +524,8 @@ namespace NLGUI
void parseSizeParent( const std::string &id );
void setSizeParent( const std::string &id );
void getSizeParent( std::string &id ) const;
std::string getPosParent() const;
void setSerializable( bool b ){ serializable = b; }
bool IsSerializable() const{ return serializable; }

@ -489,6 +489,8 @@ namespace NLGUI
uint8 getGlobalContainerAlpha() const { return _GlobalContainerAlpha; }
uint8 getGlobalRolloverFactorContent() const { return _GlobalRolloverFactorContent; }
uint8 getGlobalRolloverFactorContainer() const { return _GlobalRolloverFactorContainer; }
uint8 getContextHelpContentAlpha() const { return _ContextHelpContentAlpha; }
uint8 getContextHelpContainerAlpha() const { return _ContextHelpContainerAlpha; }
void updateGlobalAlphas();
void resetGlobalAlphasProps();
@ -608,12 +610,16 @@ namespace NLGUI
NLMISC::CCDBNodeLeaf *_GlobalContainerAlphaDB;
NLMISC::CCDBNodeLeaf *_GlobalContentRolloverFactorDB;
NLMISC::CCDBNodeLeaf *_GlobalContainerRolloverFactorDB;
NLMISC::CCDBNodeLeaf * _ContextHelpContentAlphaDB;
NLMISC::CCDBNodeLeaf * _ContextHelpContainerAlphaDB;
uint8 _ContainerAlpha;
uint8 _GlobalContentAlpha;
uint8 _GlobalContainerAlpha;
uint8 _GlobalRolloverFactorContent;
uint8 _GlobalRolloverFactorContainer;
uint8 _ContextHelpContentAlpha;
uint8 _ContextHelpContainerAlpha;
bool _MouseHandlingEnabled;
@ -654,6 +660,8 @@ namespace NLGUI
bool _GroupSelection;
bool multiSelection;
uint32 _WidgetCount;
std::set<std::string> m_LoggedMissingElement;
};
}

@ -412,8 +412,13 @@ public:
Exception();
Exception(const std::string &reason);
Exception(const char *format, ...);
#if defined(NL_COMP_GCC) && (GCC_VERSION < 40800)
virtual ~Exception() throw() {}
virtual const char *what() const throw();
#else
virtual ~Exception() NL_OVERRIDE {}
virtual const char *what() const throw() NL_OVERRIDE;
#endif
};

@ -25,6 +25,7 @@
#include "debug.h"
#include "common.h"
#include "stream.h"
#include "wang_hash.h"
namespace NLMISC {
@ -577,6 +578,7 @@ public:
};*/
// Traits for hash_map using CEntityId
#if 0
struct CEntityIdHashMapTraits
{
enum { bucket_size = 4, min_buckets = 8 };
@ -596,7 +598,27 @@ struct CEntityIdHashMapTraits
return id1.getShortId() < id2.getShortId();
}
};
#else
struct CEntityIdHashMapTraits
{
enum { bucket_size = 4, min_buckets = 8 };
CEntityIdHashMapTraits() { }
size_t operator() (const NLMISC::CEntityId &id ) const
{
uint64 hash64 = id.getUniqueId();
if (sizeof(size_t) == 8)
{
return (size_t)NLMISC::wangHash64(hash64);
}
else
{
uint32 hash32a = NLMISC::wangHash((uint32)(hash64 & 0xFFFFFFFF));
uint32 hash32b = NLMISC::wangHash((uint32)(hash64 >> 32));
return hash32a ^ hash32b;
}
}
};
#endif
/*inline std::stringstream &operator << (std::stringstream &__os, const CEntityId &__t)
{

@ -41,8 +41,11 @@ struct EFile : public EStream
EFile (const std::string& filename) : EStream( "Unknown file error in '"+filename+"'" ), Filename(filename) {}
EFile (const std::string& filename, const std::string& text, bool ) : EStream( text ), Filename(filename) {}
#if defined(NL_COMP_GCC) && (GCC_VERSION < 40800)
virtual ~EFile() throw() {}
#else
virtual ~EFile() NL_OVERRIDE {}
#endif
std::string Filename;
};

@ -81,7 +81,12 @@ struct EStream : public Exception
EStream( const IStream &f, const std::string& str );
#if defined(NL_COMP_GCC) && (GCC_VERSION < 40800)
virtual ~EStream() throw() {}
#else
virtual ~EStream() NL_OVERRIDE {}
#endif
// May Not be Filled...
std::string StreamName;

@ -1,6 +1,9 @@
// NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
// Copyright (C) 2010 Winch Gate Property Limited
//
// This source file has been modified by the following contributors:
// Copyright (C) 2020 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -92,6 +95,11 @@ public:
/// exchange memory data
void swap(CMessage &other);
#ifdef NL_CPP14
/// Move operator
CMessage &operator=(CMessage &&other) noexcept { swap(other); return *this; }
#endif
/// Sets the message type as a string and put it in the buffer if we are in writing mode
void setType (const std::string &name, TMessageType type=OneWay);

@ -244,7 +244,7 @@ private:
CCollisionOTStaticInfo *staticColInfo);
// Add a trigger in the trigger array
void newTrigger (CMovePrimitive* first, CMovePrimitive* second, const CCollisionDesc& desc, uint triggerType);
bool newTrigger (CMovePrimitive* first, CMovePrimitive* second, const CCollisionDesc& desc, uint triggerType);
// Clear modified primitive list
void clearModifiedList (uint8 worldImage);

@ -251,6 +251,28 @@ public:
_Height=height;
}
void setZFinalPosition(float pos)
{
_ZFinalPosition = pos;
}
float getZFinalPosition()
{
return _ZFinalPosition;
}
bool haveZOffset()
{
return _HaveZOffset;
}
void enableZOffset(bool enabled)
{
_HaveZOffset = enabled;
}
/**
* Set the cylinder size. Only for cylinder.
*
@ -466,6 +488,11 @@ private:
// Iteration count
sint32 _IterationCount;
float _ZOffset;
float _ZFinalPosition;
bool _HaveZOffset;
};
} // NLPACS

@ -114,6 +114,12 @@ public:
* This is an overlap trigger. This trigger is actived each time the object overlap the trigger.
*/
OverlapTrigger=0x400,
/**
* This is an stairs trigger. This trigger is actived each time the object overlap the trigger and change Z position.
*/
OverlapStairsTrigger=0x800,
};
/**
@ -274,6 +280,14 @@ public:
*/
virtual float getHeight () const =0;
virtual void setZFinalPosition(float pos) =0;
virtual float getZFinalPosition() =0;
virtual bool haveZOffset() =0;
virtual void enableZOffset(bool enabled) =0;
/**
* Set the cylinder size. Only for cylinder.
*

@ -52,8 +52,12 @@ public:
/// filePath: [out] ex. /games/nel/stream/00/00/000000000..
/// hash: [in]
/// name: [in] name for debugging purposes
virtual bool getFile(std::string &filePath, const NLMISC::CHashKey &hash, const std::string &name) NL_OVERRIDE;
#if defined(NL_COMP_GCC) && (GCC_VERSION < 40800)
virtual bool getFile(std::string &filePath, const NLMISC::CHashKey &hash, const std::string &name);
#else
virtual bool getFile(std::string &filePath, const NLMISC::CHashKey &hash, const std::string &name) NL_OVERRIDE;
#endif
public:
/// Set storage path (ex. stream/)
std::string Path;
@ -61,7 +65,7 @@ public:
/// Loads a package into the package manager (ex. http://cdn.ryzom.dev/open/stream/)
typedef std::vector<std::string> THosts;
THosts Hosts;
}; /* class CHttpPackageProvider */
} /* namespace NLMISC */

@ -1,7 +1,7 @@
/** \file driver_direct3d_pixel_program.cpp
* Direct 3d driver implementation
*
* $Id: driver_direct3d_pixel_program.cpp,v 1.1.2.4 2007/07/09 15:26:35 legallo Exp $
* $Id$
*
* \todo manage better the init/release system (if a throw occurs in the init, we must release correctly the driver)
*/

@ -1,7 +1,7 @@
/** \file driver_opengl_pixel_program.cpp
* OpenGL driver implementation for pixel program manipulation.
*
* $Id: driver_opengl_pixel_program.cpp,v 1.1.2.4 2007/07/09 15:29:00 legallo Exp $
* $Id$
*
* \todo manage better the init/release system (if a throw occurs in the init, we must release correctly the driver)
*/

@ -428,7 +428,7 @@ namespace NLGUI
if (bg.repeatX == CSS_VALUE_ROUND)
{
sint numTiles = std::max(1, (sint)std::round((float)areaW / texW));
sint numTiles = std::max(1, (sint)std::ceil(((float)areaW / texW) - 0.5f));
texW = areaW / numTiles;
if (bg.height.isAuto() && bg.repeatY != CSS_VALUE_ROUND)
{
@ -439,7 +439,7 @@ namespace NLGUI
if (bg.repeatY == CSS_VALUE_ROUND)
{
sint numTiles = std::max(1, (sint)std::round((float)areaH / texH));
sint numTiles = std::max(1, (sint)std::ceil(((float)areaH / texH) - 0.5f));
texH = areaH / numTiles;
if (bg.width.isAuto() && bg.repeatX != CSS_VALUE_ROUND)
{

@ -30,9 +30,10 @@ namespace NLGUI
bool CSSLength::parseValue(const std::string &value, bool allowPercent, bool allowNegative)
{
static const std::set<std::string> knownUnits = {
static const std::string knownUnitsArr[] = {
"%", "rem", "em", "px", "pt", "vw", "vh", "vi", "vb", "vmin", "vmax"
};
static const std::set<std::string> knownUnits(knownUnitsArr, &knownUnitsArr[sizeof(knownUnitsArr) / sizeof(knownUnitsArr[0])]);
std::string::size_type pos = 0;
std::string::size_type len = value.size();

@ -408,8 +408,11 @@ namespace NLGUI
// Check if domain is on TrustedDomain
bool CGroupHTML::isTrustedDomain(const string &domain)
{
if (domain == options.webServerDomain)
return true;
vector<string>::iterator it;
it = find ( options.trustedDomains.begin(), options.trustedDomains.end(), domain);
it = find(options.trustedDomains.begin(), options.trustedDomains.end(), domain);
return it != options.trustedDomains.end();
}
@ -3421,6 +3424,16 @@ namespace NLGUI
string finalUrl;
bool isLocal = lookupLocalFile (finalUrl, _URL.c_str(), true);
if (!isLocal && _URL.c_str()[0] == '/')
{
if (options.webServer.empty())
{
// Try again later
return;
}
finalUrl = options.webServer + finalUrl;
}
_URL = finalUrl;
CUrlParser uri (_URL);

@ -438,6 +438,14 @@ namespace NLGUI
parseSizeRef(sizeref.c_str());
}
// ------------------------------------------------------------------------------------------------
std::string CInterfaceElement::getPosParent() const
{
std::string id;
getPosParent(id);
return id;
}
// ------------------------------------------------------------------------------------------------
std::string CInterfaceElement::getSizeRefAsString() const
{

@ -208,9 +208,10 @@ namespace NLGUI
// ***************************************************************************
bool getCssLength (float &value, std::string &unit, const std::string &str, bool neg)
{
static const std::set<std::string> knownUnits = {
static const std::string knownUnitsArr[] = {
"%", "rem", "em", "px", "pt", "vw", "vh", "vi", "vb", "vmin", "vmax"
};
static const std::set<std::string> knownUnits(knownUnitsArr, &knownUnitsArr[sizeof(knownUnitsArr) / sizeof(knownUnitsArr[0])]);
std::string::size_type pos = 0;
std::string::size_type len = str.size();

File diff suppressed because it is too large Load Diff

@ -435,7 +435,22 @@ namespace NLGUI
CWidgetManager::SMasterGroup &rMG = _MasterGroups[nMasterGroup];
CInterfaceElement *pIEL = rMG.Group->getElement (sEltId);
if (pIEL != NULL)
{
#if !FINAL_VERSION
if (m_LoggedMissingElement.find(sEltId) != m_LoggedMissingElement.end())
{
m_LoggedMissingElement.erase(sEltId);
nlwarning("Previously missing UI element with Id '%s' was now found!", sEltId.c_str());
}
#endif
return pIEL;
}
}
if (m_LoggedMissingElement.find(sEltId) == m_LoggedMissingElement.end())
{
m_LoggedMissingElement.insert(sEltId);
nlwarning("Could not find UI element from Id '%s'...", sEltId.c_str());
}
return NULL;
}
@ -1779,33 +1794,69 @@ namespace NLGUI
getWindowForActiveMasterGroup(_CurCtrlContextHelp->getContextHelpWindowName());
if(groupContextHelp)
{
{
/** If there's a modal box around, should be sure that the context help doesn't intersect it.
* If this is the case, we just disable it, unless the tooltip was generated by the current modal window
*/
bool draw = false;
if ( hasModal() )
{
CInterfaceGroup *mw = getModal().ModalWindow;
if (mw && mw->isIn(*groupContextHelp))
{
if (_CurCtrlContextHelp->isSonOf(mw))
{
groupContextHelp->executeLuaScriptOnDraw();
groupContextHelp->draw ();
// flush layers
CViewRenderer::getInstance()->flush();
}
draw = true;
}
else
{
groupContextHelp->executeLuaScriptOnDraw();
groupContextHelp->draw ();
// flush layers
CViewRenderer::getInstance()->flush();
}
draw = true;
}
else
{
draw = true;
if (draw) {
// apply opacity settings
const std::vector< CViewBase* > &vs = groupContextHelp->getViews();
// content opacity: only target views or else breaks
for( uint i = 0; i < vs.size(); ++i)
{
CViewBase *pVB = vs[i];
pVB->setAlpha(_ContextHelpContentAlpha);
}
// go into sub groups and apply opacity to views and controls (this is mainly for crystallized_spell_context_help)
const std::vector<CInterfaceGroup*> &rG = groupContextHelp->getGroups();
if (!rG.empty()) {
for(uint i = 0; i < rG.size(); ++i) {
const std::vector< CInterfaceGroup* > &vs = rG[i]->getGroups();
if (!vs.empty()) {
for( uint j = 0; j < vs.size(); ++j)
{
const std::vector< CViewBase* > &vb = vs[j]->getViews();
if (!vb.empty()) {
for( uint k = 0; k < vb.size(); ++k)
{
CViewBase *pVB = vb[k];
pVB->setAlpha(_ContextHelpContentAlpha);
}
}
}
}
const std::vector< CViewBase* > &vb = rG[i]->getViews();
if (!vb.empty()) {
for( uint k = 0; k < vb.size(); ++k)
{
CViewBase *pVB = vb[k];
pVB->setAlpha(_ContextHelpContentAlpha);
}
}
}
}
// container opacity
CInterfaceGroup* container = dynamic_cast<CInterfaceGroup*>(groupContextHelp->findFromShortId("border"));
if (container)
container->setAlpha(_ContextHelpContainerAlpha);
// draw the tooltip
groupContextHelp->executeLuaScriptOnDraw();
groupContextHelp->draw ();
// flush layers
@ -2304,16 +2355,16 @@ namespace NLGUI
SModalWndInfo mwi = getModal();
if (mwi.ModalExitKeyPushed)
disableModalWindow();
}
}
// Manage "quit window" If the Key is ESCAPE, no captureKeyboard
if( eventDesc.getKeyEventType() == CEventDescriptorKey::keydown && eventDesc.getKey() == NLMISC::KeyESCAPE )
{
// Get the last escapable active top window. NB: this is ergonomically better.
handled= true;
}
CInterfaceGroup *win= getLastEscapableTopWindow();
if( win )
if ( win )
{
// Manage "quit window" If the Key is ESCAPE, no captureKeyboard
// Get the last escapable active top window. NB: this is ergonomically better.
// If the window is a modal, must pop it.
if( dynamic_cast<CGroupModal*>(win) )
{
@ -2399,7 +2450,13 @@ namespace NLGUI
}
}
// General case: handle it in the Captured keyboard
if (eventDesc.getKeyEventType() == CEventDescriptorKey::keydown && eventDesc.getKey() == NLMISC::KeyESCAPE && !handled && !isKeyboardCaptured())
{
CAHManager::getInstance()->runActionHandler("enter_modal", NULL, "group=ui:interface:quit_dialog");
handled = true;
}
// General case: handle it in the Captured keyboard
if ( getCaptureKeyboard() != NULL && !handled)
{
bool result = getCaptureKeyboard()->handleEvent(evnt);
@ -3338,11 +3395,17 @@ namespace NLGUI
nlassert(_GlobalContentRolloverFactorDB);
_GlobalContainerRolloverFactorDB = CDBManager::getInstance()->getDbProp("UI:SAVE:CONTAINER_ROLLOVER_FACTOR");
nlassert(_GlobalContainerRolloverFactorDB);
_ContextHelpContentAlphaDB = CDBManager::getInstance()->getDbProp("UI:SAVE:CONTEXT_HELP_CONTENT_ALPHA");
nlassert(_ContextHelpContentAlphaDB);
_ContextHelpContainerAlphaDB = CDBManager::getInstance()->getDbProp("UI:SAVE:CONTEXT_HELP_CONTAINER_ALPHA");
nlassert(_ContextHelpContainerAlphaDB);
}
_GlobalContentAlpha = (uint8)_GlobalContentAlphaDB->getValue32();
_GlobalContainerAlpha = (uint8)_GlobalContainerAlphaDB->getValue32();
_GlobalRolloverFactorContent = (uint8)_GlobalContentRolloverFactorDB->getValue32();
_GlobalRolloverFactorContainer = (uint8)_GlobalContainerRolloverFactorDB->getValue32();
_ContextHelpContentAlpha = (uint8)_ContextHelpContentAlphaDB->getValue32();
_ContextHelpContainerAlpha = (uint8)_ContextHelpContainerAlphaDB->getValue32();
}
void CWidgetManager::resetGlobalAlphasProps()
@ -3351,6 +3414,8 @@ namespace NLGUI
_GlobalContainerAlphaDB = NULL;
_GlobalContentRolloverFactorDB = NULL;
_GlobalContainerRolloverFactorDB = NULL;
_ContextHelpContentAlphaDB = NULL;
_ContextHelpContainerAlphaDB = NULL;
}
void CWidgetManager::registerNewScreenSizeHandler( INewScreenSizeHandler *handler )
@ -3884,6 +3949,8 @@ namespace NLGUI
_GlobalRolloverFactorContent = 255;
_GlobalRolloverFactorContainer = 255;
_AlphaRolloverSpeedDB = NULL;
_ContextHelpContentAlpha = 255;
_ContextHelpContainerAlpha = 255;
_MouseHandlingEnabled = true;
_MouseOverWindow = false;

@ -17,6 +17,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdmisc.h"
#include <nel/misc/seven_zip.h>
#include <nel/misc/types_nl.h>

@ -266,9 +266,14 @@ void uncbServiceIdentification(CMessage &msgin, TSockId from, CCallbackNetBase &
nlinfo ("HNETL5: + connect ident '%s' %s-%hu pos %hu ext %d", from->asString().c_str(), inSName.c_str(), inSid.get(), (uint16)pos, (uint8)isExternal);
if(isExternal)
if (isExternal)
{
nlassert (pos == 0);
#ifdef NL_OS_WINDOWS
pos = 0;
#else
nlassert(pos == 0);
#endif
}
if (inSid.get() == 0)

@ -918,8 +918,10 @@ bool CMoveContainer::evalPrimAgainstPrimCollision (double beginTime, CMovePrimit
|| (otherPrimitive->getTriggerType()&UMovePrimitive::EnterTrigger));
bool exit = (beginTime<=lastTime) && (lastTime<_DeltaTime) && ((primitive->getTriggerType()&UMovePrimitive::ExitTrigger)
|| (otherPrimitive->getTriggerType()&UMovePrimitive::ExitTrigger));
bool overlap = (firstTime<=beginTime) && (lastTime>_DeltaTime) && ((primitive->getTriggerType()&UMovePrimitive::OverlapTrigger)
|| (otherPrimitive->getTriggerType()&UMovePrimitive::OverlapTrigger));
bool overlap = ((firstTime<=beginTime) && (lastTime>_DeltaTime) && ((primitive->getTriggerType()&UMovePrimitive::OverlapTrigger)
|| (otherPrimitive->getTriggerType()&UMovePrimitive::OverlapTrigger)) ||
(firstTime<=beginTime) && (lastTime>_DeltaTime) && ((primitive->getTriggerType()&UMovePrimitive::OverlapStairsTrigger)
|| (otherPrimitive->getTriggerType()&UMovePrimitive::OverlapStairsTrigger)));
bool contact = ( beginTime<((firstTime+lastTime)/2) ) && (firstTime<=_DeltaTime);
bool collision = contact && (primitive->isObstacle() && otherPrimitive->isObstacle ());
@ -1211,7 +1213,7 @@ void CMoveContainer::newCollision (CMovePrimitive* first, const CCollisionSurfac
// ***************************************************************************
void CMoveContainer::newTrigger (CMovePrimitive* first, CMovePrimitive* second, const CCollisionDesc& desc, uint triggerType)
bool CMoveContainer::newTrigger (CMovePrimitive* first, CMovePrimitive* second, const CCollisionDesc& desc, uint triggerType)
{
// Element index
uint index=(uint)_Triggers.size();
@ -1224,6 +1226,14 @@ void CMoveContainer::newTrigger (CMovePrimitive* first, CMovePrimitive* second,
_Triggers[index].Object1=second->UserData;
_Triggers[index].CollisionDesc=desc;
_Triggers[index].CollisionType = uint8(triggerType);
if (second->_StaticFlags&UMovePrimitive::OverlapStairsTrigger) {
nlinfo("Col Stairs height %f", second->getHeight());
return true;
}
return false;
}
// ***************************************************************************
@ -1659,8 +1669,17 @@ void CMoveContainer::reaction (const CCollisionOTInfo& first)
newTrigger (dynInfo->getFirstPrimitive (), dynInfo->getSecondPrimitive (), dynInfo->getCollisionDesc (), UTriggerInfo::In);
if (dynInfo->isExit())
newTrigger (dynInfo->getFirstPrimitive (), dynInfo->getSecondPrimitive (), dynInfo->getCollisionDesc (), UTriggerInfo::Out);
if (dynInfo->isInside())
newTrigger (dynInfo->getFirstPrimitive (), dynInfo->getSecondPrimitive (), dynInfo->getCollisionDesc (), UTriggerInfo::Inside);
if (dynInfo->isInside()) {
if (newTrigger (dynInfo->getFirstPrimitive (), dynInfo->getSecondPrimitive (), dynInfo->getCollisionDesc (), UTriggerInfo::Inside))
{
dynInfo->getFirstPrimitive()->enableZOffset(true);
CVectorD first_pos = dynInfo->getFirstPrimitive()->getFinalPosition(dynInfo->getFirstWorldImage());
CVectorD second_pos = dynInfo->getSecondPrimitive()->getFinalPosition(dynInfo->getSecondWorldImage());
dynInfo->getFirstPrimitive()->setZFinalPosition(second_pos.z+dynInfo->getSecondPrimitive()->getHeight()-10.0f);
}
}
if (dynInfo->isExit())
newTrigger (dynInfo->getFirstPrimitive (), dynInfo->getSecondPrimitive (), dynInfo->getCollisionDesc (), UTriggerInfo::Out);
}
}
}

@ -49,6 +49,8 @@ CMovePrimitive::CMovePrimitive (CMoveContainer* container, uint8 firstWorldImage
_StaticFlags=0;
_RootOTInfo=NULL;
_LastTestTime=0xffffffff;
_ZOffset = 0;
_HaveZOffset = false;
// Ptr table alloc
_WorldImages=_Container->allocateWorldImagesPtrs (numWorldImage);
@ -149,6 +151,11 @@ bool CMovePrimitive::isTriggered (CMovePrimitive& second, bool enter, bool exit)
{
// Generate a trigger ?
// Is one of them is a stairs trigger ?
if ( second._StaticFlags&OverlapStairsTrigger )
return true;
// Is the two are not triggers ?
if ( ( (_StaticFlags&TriggerMask) == NotATrigger ) && ( (second._StaticFlags&TriggerMask) == NotATrigger ) )
return false;

@ -262,7 +262,7 @@ void CSound::importForm(const std::string& filename, NLGEORGES::UFormElm& roo
_GroupController = CGroupControllerRoot::getInstance()->getGroupController(NLSOUND_SHEET_V1_DEFAULT_SOUND_GROUP_CONTROLLER);
#else
std::string groupControllerPath;
root.getValueByName(groupControllerPath, ".GroupControllerPath");
root.getValueByName(groupControllerPath, ".GroupController");
_GroupController = CGroupControllerRoot::getInstance()->getGroupController(groupControllerPath);
#endif

@ -1,16 +1,16 @@
#!/bin/bash
rm log.log 2> /dev/null
# Log error
echo ------- > log.log
echo --- Build anim : optimze >> log.log
echo ------- >> log.log
echo -------
echo --- Build anim : optimze
echo -------
date >> log.log
date
# Execute the build
anim_builder.exe anim_export anim ../../cfg/properties.cfg
#!/bin/bash
rm log.log 2> /dev/null
# Log error
echo ------- > log.log
echo --- Build anim : optimze >> log.log
echo ------- >> log.log
echo -------
echo --- Build anim : optimze
echo -------
date >> log.log
date
# Execute the build
anim_builder.exe anim_export anim ../../cfg/properties.cfg

@ -1,57 +1,57 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export animation files (.anim) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "anim_export_timeout" | sed -e 's/anim_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the anim directories
anim_source_directories=`cat ../../cfg/directories.cfg | grep "anim_source_directory" | sed -e 's/anim_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export animation >> log.log
echo ------- >> log.log
echo -------
echo --- Export animation
echo -------
date >> log.log
date
# For each directoy
for i in $anim_source_directories ; do
# Copy the script
cat maxscript/anim_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/anim/log.log&g" | sed -e "s&anim_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/anim/anim_export&g" > $max_directory/scripts/anim_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript anim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript anim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript anim_export.ms -q -mi -vn
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export animation files (.anim) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "anim_export_timeout" | sed -e 's/anim_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the anim directories
anim_source_directories=`cat ../../cfg/directories.cfg | grep "anim_source_directory" | sed -e 's/anim_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export animation >> log.log
echo ------- >> log.log
echo -------
echo --- Export animation
echo -------
date >> log.log
date
# For each directoy
for i in $anim_source_directories ; do
# Copy the script
cat maxscript/anim_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/anim/log.log&g" | sed -e "s&anim_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/anim/anim_export&g" > $max_directory/scripts/anim_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript anim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript anim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript anim_export.ms -q -mi -vn
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install anim in the client data
# Get the anim install directory
anim_install_directory=`cat ../../cfg/directories.cfg | grep "anim_install_directory" | sed -e 's/anim_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install animation >> log.log
echo ------- >> log.log
echo -------
echo --- Install animation
echo -------
date >> log.log
date
cp -u -p -R anim/. $client_directory/$anim_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install anim in the client data
# Get the anim install directory
anim_install_directory=`cat ../../cfg/directories.cfg | grep "anim_install_directory" | sed -e 's/anim_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install animation >> log.log
echo ------- >> log.log
echo -------
echo --- Install animation
echo -------
date >> log.log
date
cp -u -p -R anim/. $client_directory/$anim_install_directory 2>> log.log

@ -1,26 +1,26 @@
#!/bin/bash
rm log.log 2> /dev/null
# Log error
echo ------- > log.log
echo --- Build clod : build .clodbank >> log.log
echo ------- >> log.log
echo -------
echo --- Build clod : build .clodbank
echo -------
date >> log.log
date
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the lod config file in the database
clod_config_file=`cat ../../cfg/config.cfg | grep "clod_config_file" | sed -e 's/clod_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the Lod character bank name
clod_bank_file_name=`cat ../../cfg/config.cfg | grep "clod_bank_file_name" | sed -e 's/clod_bank_file_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Execute the build
build_clod_bank.exe cfg/local_path.cfg $database_directory/$clod_config_file clodbank/$clod_bank_file_name
#!/bin/bash
rm log.log 2> /dev/null
# Log error
echo ------- > log.log
echo --- Build clod : build .clodbank >> log.log
echo ------- >> log.log
echo -------
echo --- Build clod : build .clodbank
echo -------
date >> log.log
date
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the lod config file in the database
clod_config_file=`cat ../../cfg/config.cfg | grep "clod_config_file" | sed -e 's/clod_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the Lod character bank name
clod_bank_file_name=`cat ../../cfg/config.cfg | grep "clod_bank_file_name" | sed -e 's/clod_bank_file_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Execute the build
build_clod_bank.exe cfg/local_path.cfg $database_directory/$clod_config_file clodbank/$clod_bank_file_name

@ -1,60 +1,60 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export character lod shape files (.clod) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "shape_export_timeout" | sed -e 's/shape_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the shape directories
clod_source_directories=`cat ../../cfg/directories.cfg | grep "clod_source_directory" | sed -e 's/clod_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export clod >> log.log
echo ------- >> log.log
echo -------
echo --- Export clod
echo -------
date >> log.log
date
# For each directoy
for i in $clod_source_directories ; do
# Copy the script
cat maxscript/clod_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/clodbank/log.log&g" | sed -e "s&shape_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_clod&$build_gamedata_directory/processes/clodbank/clod&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/clodbank/tag&g" > $max_directory/scripts/clod_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export character lod shape files (.clod) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "shape_export_timeout" | sed -e 's/shape_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the shape directories
clod_source_directories=`cat ../../cfg/directories.cfg | grep "clod_source_directory" | sed -e 's/clod_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export clod >> log.log
echo ------- >> log.log
echo -------
echo --- Export clod
echo -------
date >> log.log
date
# For each directoy
for i in $clod_source_directories ; do
# Copy the script
cat maxscript/clod_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/clodbank/log.log&g" | sed -e "s&shape_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_clod&$build_gamedata_directory/processes/clodbank/clod&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/clodbank/tag&g" > $max_directory/scripts/clod_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install clodbank in the client data, in the "shapes/" directory
# Get the shape install directory
shape_install_directory=`cat ../../cfg/directories.cfg | grep "shape_install_directory" | sed -e 's/shape_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install clodbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install clodbank
echo -------
date >> log.log
date
cp -u -p -R clodbank/. $client_directory/$shape_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install clodbank in the client data, in the "shapes/" directory
# Get the shape install directory
shape_install_directory=`cat ../../cfg/directories.cfg | grep "shape_install_directory" | sed -e 's/shape_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install clodbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install clodbank
echo -------
date >> log.log
date
cp -u -p -R clodbank/. $client_directory/$shape_install_directory 2>> log.log

@ -1,29 +1,29 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export displace tile (.tga)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the displace directories
displace_source_directories=`cat ../../cfg/directories.cfg | grep "displace_source_directories" | sed -e 's/displace_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export displace >> log.log
echo ------- >> log.log
echo -------
echo --- Export displace
echo -------
date >> log.log
date
# For each displace directory
for i in $displace_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga 2>> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export displace tile (.tga)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the displace directories
displace_source_directories=`cat ../../cfg/directories.cfg | grep "displace_source_directories" | sed -e 's/displace_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export displace >> log.log
echo ------- >> log.log
echo -------
echo --- Export displace
echo -------
date >> log.log
date
# For each displace directory
for i in $displace_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga 2>> log.log
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the displace in the client data
# Get the displace install directory
displace_install_directory=`cat ../../cfg/directories.cfg | grep "displace_install_directory" | sed -e 's/displace_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install displace >> log.log
echo ------- >> log.log
echo -------
echo --- Install displace
echo -------
date >> log.log
date
cp -u -p -R tga/. $client_directory/$displace_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the displace in the client data
# Get the displace install directory
displace_install_directory=`cat ../../cfg/directories.cfg | grep "displace_install_directory" | sed -e 's/displace_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install displace >> log.log
echo ------- >> log.log
echo -------
echo --- Install displace
echo -------
date >> log.log
date
cp -u -p -R tga/. $client_directory/$displace_install_directory 2>> log.log

@ -1,89 +1,89 @@
#!/bin/bash
rm log.log 2> /dev/null
# Build the farbank
build_farbank='build_far_bank.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "farbank_build_timeout" | sed -e 's/farbank_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the tiles root directories
tile_root_source_directory=`cat ../../cfg/directories.cfg | grep "tile_root_source_directory" | sed -e 's/tile_root_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the extension list
multiple_tiles_postfix=`cat ../../cfg/config.cfg | grep "multiple_tiles_postfix" | sed -e 's/multiple_tiles_postfix//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Build farbank >> log.log
echo ------- >> log.log
echo -------
echo --- Build farbank
echo -------
date >> log.log
date
# list all the bank
bank_list=`ls -1 ../smallbank/smallbank/*.[sS][mM][aA][lL][lL][bB][aA][nN][kK]`
# For each bank
for i in $bank_list ; do
if ( test "$multiple_tiles_postfix" ) then
for j in $multiple_tiles_postfix ; do
# Destination the name
dest=`echo $i | sed -e "s&\.smallbank&\$j.farbank&g" | sed -e 's&../smallbank/smallbank&farbank&g'`
echo $i
echo $dest
# Make the dependencies
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $build_farbank $i $dest -d$database_directory/$tile_root_source_directory$j/ -p$j
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
# Idle
../../idle.bat
done
else
# Destination the name
dest=`echo $i | sed -e 's&\.smallbank&\.farbank&g' | sed -e 's&../smallbank/smallbank&farbank&g'`
echo $i
echo $dest
# Make the dependencies
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $build_farbank $i $dest
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
fi
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# Build the farbank
build_farbank='build_far_bank.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "farbank_build_timeout" | sed -e 's/farbank_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the tiles root directories
tile_root_source_directory=`cat ../../cfg/directories.cfg | grep "tile_root_source_directory" | sed -e 's/tile_root_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the extension list
multiple_tiles_postfix=`cat ../../cfg/config.cfg | grep "multiple_tiles_postfix" | sed -e 's/multiple_tiles_postfix//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Build farbank >> log.log
echo ------- >> log.log
echo -------
echo --- Build farbank
echo -------
date >> log.log
date
# list all the bank
bank_list=`ls -1 ../smallbank/smallbank/*.[sS][mM][aA][lL][lL][bB][aA][nN][kK]`
# For each bank
for i in $bank_list ; do
if ( test "$multiple_tiles_postfix" ) then
for j in $multiple_tiles_postfix ; do
# Destination the name
dest=`echo $i | sed -e "s&\.smallbank&\$j.farbank&g" | sed -e 's&../smallbank/smallbank&farbank&g'`
echo $i
echo $dest
# Make the dependencies
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $build_farbank $i $dest -d$database_directory/$tile_root_source_directory$j/ -p$j
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
# Idle
../../idle.bat
done
else
# Destination the name
dest=`echo $i | sed -e 's&\.smallbank&\.farbank&g' | sed -e 's&../smallbank/smallbank&farbank&g'`
echo $i
echo $dest
# Make the dependencies
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $build_farbank $i $dest
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
fi
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the farbank in the client data
# Get the bank install directory
bank_install_directory=`cat ../../cfg/directories.cfg | grep "bank_install_directory" | sed -e 's/bank_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install farbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install farbank
echo -------
date >> log.log
date
cp -u -p -R farbank/. $client_directory/$bank_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the farbank in the client data
# Get the bank install directory
bank_install_directory=`cat ../../cfg/directories.cfg | grep "bank_install_directory" | sed -e 's/bank_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install farbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install farbank
echo -------
date >> log.log
date
cp -u -p -R farbank/. $client_directory/$bank_install_directory 2>> log.log

@ -1,32 +1,32 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export fonts
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ps directories
font_source_directories=`cat ../../cfg/directories.cfg | grep "font_source_directories" | sed -e 's/font_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export fonts >> log.log
echo ------- >> log.log
echo -------
echo --- Export fonts
echo -------
date >> log.log
date
# For each font directory
for i in $font_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[tT][tT][fF] fonts 2>> log.log
cp -u -p $database_directory/$i/*.[aA][fF][mM] fonts 2>> log.log
cp -u -p $database_directory/$i/*.[pP][fF][bB] fonts 2>> log.log
cp -u -p $database_directory/$i/*.[pP][fF][mM] fonts 2>> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export fonts
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ps directories
font_source_directories=`cat ../../cfg/directories.cfg | grep "font_source_directories" | sed -e 's/font_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export fonts >> log.log
echo ------- >> log.log
echo -------
echo --- Export fonts
echo -------
date >> log.log
date
# For each font directory
for i in $font_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[tT][tT][fF] fonts 2>> log.log
cp -u -p $database_directory/$i/*.[aA][fF][mM] fonts 2>> log.log
cp -u -p $database_directory/$i/*.[pP][fF][bB] fonts 2>> log.log
cp -u -p $database_directory/$i/*.[pP][fF][mM] fonts 2>> log.log
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the fonts in the client data
# Get the fonts install directory
fonts_install_directory=`cat ../../cfg/directories.cfg | grep "fonts_install_directory" | sed -e 's/fonts_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install fonts >> log.log
echo ------- >> log.log
echo -------
echo --- Install fonts
echo -------
date >> log.log
date
cp -u -p -R fonts/. $client_directory/$fonts_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the fonts in the client data
# Get the fonts install directory
fonts_install_directory=`cat ../../cfg/directories.cfg | grep "fonts_install_directory" | sed -e 's/fonts_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install fonts >> log.log
echo ------- >> log.log
echo -------
echo --- Install fonts
echo -------
date >> log.log
date
cp -u -p -R fonts/. $client_directory/$fonts_install_directory 2>> log.log

@ -1,304 +1,304 @@
#!/bin/bash
rm log.log 2> /dev/null
# ig_land_max: landscape IG eported from 3dsmax not elevated by the heightmap
# ig_land_max_elev: landscape IG eported from 3dsmax elevated by the heightmap
# ig_land_ligo: landscape IG found in ligo bricks not elevated by the heightmap
# ig_land_ligo_elev: landscape IG found in ligo bricks from 3dsmax elevated by the heightmap
# ig_land_ld: landscape IG generated by the land exporter (already elevated by the land exporter)
# ig_land: final IG directory for landscape IGs
# ig_land_compare: Tmp final IG directory for landscape IGs before comparison
# ig_other: final IG directory for village or construction IGs
# Log error
echo ------- >> log.log
echo --- Build ig >> log.log
echo ------- >> log.log
echo -------
echo --- Build ig
echo -------
date >> log.log
date
# ************************************************
# Build the IG_LAND made with the LevelDesign Tool
# ************************************************
# Get the primitive directory
continentdir=`cat ../../cfg/config.cfg | grep "leveldesign_igexport_continent_dir" | sed -e 's/leveldesign_igexport_continent_dir//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/;//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the primitive directories
ligo_ig_primitive_directory=`cat ../../cfg/directories.cfg | grep "ligo_ig_primitive_directory" | sed -e 's/ligo_ig_primitive_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the form directory
form_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
if ( test "$continentdir" || test "$ligo_ig_primitive_directory" )
then
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
if ( test "$land_name" )
then
echo [Prim IG] ON
echo [Prim IG] ON >> log.log
# create cfg file
# +++++++++++++++
rm prim_export.cfg
echo "// prim_export.cfg" > prim_export.cfg
echo "OutIGDir = \"ig_land_ld\";" >> prim_export.cfg
echo "ZoneWDir = \"..\\zone\\zone_welded\";" >> prim_export.cfg
name_bank=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "SmallBank = $name_bank" >> prim_export.cfg
name_farbank=`cat ../../cfg/properties.cfg | grep "bankfar_name" | sed -e 's/bankfar_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "FarBank = $name_farbank" >> prim_export.cfg
displacedir=`cat ../../cfg/directories.cfg | grep "displace_source_directory" | sed -e 's/displace_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "DisplaceDir = \"$dir_database/$displacedir\";" >> prim_export.cfg
echo "CellSize = 160.0;" >> prim_export.cfg
# Set the continent directory to export
echo "PrimDirs = {" >> prim_export.cfg
echo " $continentdir," >> prim_export.cfg
for dir in $ligo_ig_primitive_directory ; do
echo " \"$database_directory/$dir\"," >> prim_export.cfg
done
echo "};" >> prim_export.cfg
# Set the dfn directory to export
echo "FormDir = \"$form_dir\";" >> prim_export.cfg
# *******************
# Launch the exporter
# *******************
prim_export.exe prim_export.cfg
# *******************
# Merge it with the IG_LAND exported from Max + elvated with heightmap
# *******************
# elevation of the heightmap for land_max
# ++++++++++++++++++++++++++++++++++++++++++++
rm ig_elevation.cfg
echo "// ig_elevation.cfg" > ig_elevation.cfg
echo "OutputIGDir = \"ig_land_max_elev\";" >> ig_elevation.cfg
echo "InputIGDir = \"ig_land_max\";" >> ig_elevation.cfg
echo "CellSize = 160.0;" >> ig_elevation.cfg
# HeightMapFile1 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
hmf1=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap1" | sed -e 's/ligo_export_heightmap1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile1 = \"$dir_database/$dir_ligosrc/$hmf1\";" >> ig_elevation.cfg
# ZFactor1 is the heightmap factor
zf1=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor1" | sed -e 's/ligo_export_zfactor1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor1 = $zf1;" >> ig_elevation.cfg
# HeightMapFile2 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf2=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap2" | sed -e 's/ligo_export_heightmap2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile2 = \"$dir_database/$dir_ligosrc/$hmf2\";" >> ig_elevation.cfg
# ZFactor2 is the heightmap factor
zf2=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor2" | sed -e 's/ligo_export_zfactor2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor2 = $zf2;" >> ig_elevation.cfg
echo "LandFile = \"$dir_database/$dir_ligosrc/$land_name\";" >> ig_elevation.cfg
ig_elevation ig_elevation.cfg
# elevation of the heightmap for land_ligo
# ++++++++++++++++++++++++++++++++++++++++++++
rm ig_elevation.cfg
echo "// ig_elevation.cfg" > ig_elevation.cfg
echo "OutputIGDir = \"ig_land_ligo_elev\";" >> ig_elevation.cfg
echo "InputIGDir = \"ig_land_ligo\";" >> ig_elevation.cfg
echo "CellSize = 160.0;" >> ig_elevation.cfg
# HeightMapFile1 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
hmf1=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap1" | sed -e 's/ligo_export_heightmap1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile1 = \"$dir_database/$dir_ligosrc/$hmf1\";" >> ig_elevation.cfg
# ZFactor1 is the heightmap factor
zf1=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor1" | sed -e 's/ligo_export_zfactor1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor1 = $zf1;" >> ig_elevation.cfg
# HeightMapFile2 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf2=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap2" | sed -e 's/ligo_export_heightmap2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile2 = \"$dir_database/$dir_ligosrc/$hmf2\";" >> ig_elevation.cfg
# ZFactor2 is the heightmap factor
zf2=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor2" | sed -e 's/ligo_export_zfactor2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor2 = $zf2;" >> ig_elevation.cfg
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "LandFile = \"$dir_database/$dir_ligosrc/$land_name\";" >> ig_elevation.cfg
ig_elevation ig_elevation.cfg
else
echo [Prim IG] OFF
echo [Prim IG] OFF >> log.log
fi
else
echo [Prim IG] OFF
echo [Prim IG] OFF >> log.log
fi
# Erase ig in ig_merge_tmp and ig_land_compare
rm ig_merge_tmp/*
rm ig_land_compare/*
# Merge ig in ig_land_ld with ig_land_max_elev in ig_merge_tmp
dir_current=`pwd`
cd ig_land_ld
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_land_max_elev ?
if test -e ig_land_max_elev/$filename ; then
# Yes, lets merge it
ig_add ig_merge_tmp/$filename ig_land_max_elev/$filename ig_land_ld/$filename ;
else
# No, only copy it
cp ig_land_ld/$filename ig_merge_tmp/$filename ;
fi
# Idle
../../idle.bat
done
# Merge ig in ig_land_max_elev with ig_land_ld in ig_merge_tmp
cd ig_land_max_elev
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_land_ld ?
if !(test -e ig_land_ld/$filename) then
# No, only copy it
cp ig_land_max_elev/$filename ig_merge_tmp/$filename ;
fi
# Idle
../../idle.bat
done
# Merge ig in ig_merge_tmp with ig_land_ligo_elev in ig_land_compare
cd ig_merge_tmp
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_land_ligo_elev ?
if (test -e ig_land_ligo_elev/$filename) then
# Yes, lets merge it
ig_add ig_land_compare/$filename ig_merge_tmp/$filename ig_land_ligo_elev/$filename ;
else
# No, only copy it
cp ig_merge_tmp/$filename ig_land_compare/$filename ;
fi
# Idle
../../idle.bat
done
# Merge ig in ig_land_ligo_elev with ig_merge_tmp in ig_land_compare
cd ig_land_ligo_elev
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_merge_tmp ?
if !(test -e ig_merge_tmp/$filename) then
# No, only copy it
cp ig_land_ligo_elev/$filename ig_land_compare/$filename ;
fi
# Idle
../../idle.bat
done
# Compare and update
cd ig_land_compare
list_ig=`ls -1 *.[iI][gG]`
for filename in $list_ig ; do
echo "Checking $filename for update"
if test -e ../ig_land/$filename ; then
must_update=`diff --binary -q $filename ../ig_land/$filename` ;
else
must_update=YES ;
fi
if test -n "$must_update" ; then
echo " Updating"
cp -u -p $filename ../ig_land/$filename ;
fi
# Idle
../../../idle.bat
done
cd ../ig_land
list_ig=`ls -1 *.[iI][gG]`
for filename in $list_ig ; do
if !(test -e ../ig_land_compare/$filename) then
echo "Remove $filename"
rm $filename ;
fi
# Idle
../../../idle.bat
done
cd $dir_current
# ******************
# List all the zones
# ******************
# Get the landscape name
landscape_name=`cat ../../cfg/config.cfg | grep "landscape_name" | sed -e 's/landscape_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Landscape name exist ?
if ( test "$landscape_name" )
then
# If the list file exists, erase it
if ( test -f "$landscape_name"_ig.txt )
then
rm "$landscape_name"_ig.txt
fi
cd ig_land
for i in *.[iI][gG] ; do
# Build an ig list
if ( test -f $i )
then
echo $i >> ../"$landscape_name"_ig.txt
else
echo >> ../"$landscape_name"_ig.txt
fi
done
cd ..
# Idle
../../idle.bat
fi
#!/bin/bash
rm log.log 2> /dev/null
# ig_land_max: landscape IG eported from 3dsmax not elevated by the heightmap
# ig_land_max_elev: landscape IG eported from 3dsmax elevated by the heightmap
# ig_land_ligo: landscape IG found in ligo bricks not elevated by the heightmap
# ig_land_ligo_elev: landscape IG found in ligo bricks from 3dsmax elevated by the heightmap
# ig_land_ld: landscape IG generated by the land exporter (already elevated by the land exporter)
# ig_land: final IG directory for landscape IGs
# ig_land_compare: Tmp final IG directory for landscape IGs before comparison
# ig_other: final IG directory for village or construction IGs
# Log error
echo ------- >> log.log
echo --- Build ig >> log.log
echo ------- >> log.log
echo -------
echo --- Build ig
echo -------
date >> log.log
date
# ************************************************
# Build the IG_LAND made with the LevelDesign Tool
# ************************************************
# Get the primitive directory
continentdir=`cat ../../cfg/config.cfg | grep "leveldesign_igexport_continent_dir" | sed -e 's/leveldesign_igexport_continent_dir//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/;//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the primitive directories
ligo_ig_primitive_directory=`cat ../../cfg/directories.cfg | grep "ligo_ig_primitive_directory" | sed -e 's/ligo_ig_primitive_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the form directory
form_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
if ( test "$continentdir" || test "$ligo_ig_primitive_directory" )
then
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
if ( test "$land_name" )
then
echo [Prim IG] ON
echo [Prim IG] ON >> log.log
# create cfg file
# +++++++++++++++
rm prim_export.cfg
echo "// prim_export.cfg" > prim_export.cfg
echo "OutIGDir = \"ig_land_ld\";" >> prim_export.cfg
echo "ZoneWDir = \"..\\zone\\zone_welded\";" >> prim_export.cfg
name_bank=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "SmallBank = $name_bank" >> prim_export.cfg
name_farbank=`cat ../../cfg/properties.cfg | grep "bankfar_name" | sed -e 's/bankfar_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "FarBank = $name_farbank" >> prim_export.cfg
displacedir=`cat ../../cfg/directories.cfg | grep "displace_source_directory" | sed -e 's/displace_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "DisplaceDir = \"$dir_database/$displacedir\";" >> prim_export.cfg
echo "CellSize = 160.0;" >> prim_export.cfg
# Set the continent directory to export
echo "PrimDirs = {" >> prim_export.cfg
echo " $continentdir," >> prim_export.cfg
for dir in $ligo_ig_primitive_directory ; do
echo " \"$database_directory/$dir\"," >> prim_export.cfg
done
echo "};" >> prim_export.cfg
# Set the dfn directory to export
echo "FormDir = \"$form_dir\";" >> prim_export.cfg
# *******************
# Launch the exporter
# *******************
prim_export.exe prim_export.cfg
# *******************
# Merge it with the IG_LAND exported from Max + elvated with heightmap
# *******************
# elevation of the heightmap for land_max
# ++++++++++++++++++++++++++++++++++++++++++++
rm ig_elevation.cfg
echo "// ig_elevation.cfg" > ig_elevation.cfg
echo "OutputIGDir = \"ig_land_max_elev\";" >> ig_elevation.cfg
echo "InputIGDir = \"ig_land_max\";" >> ig_elevation.cfg
echo "CellSize = 160.0;" >> ig_elevation.cfg
# HeightMapFile1 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
hmf1=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap1" | sed -e 's/ligo_export_heightmap1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile1 = \"$dir_database/$dir_ligosrc/$hmf1\";" >> ig_elevation.cfg
# ZFactor1 is the heightmap factor
zf1=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor1" | sed -e 's/ligo_export_zfactor1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor1 = $zf1;" >> ig_elevation.cfg
# HeightMapFile2 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf2=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap2" | sed -e 's/ligo_export_heightmap2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile2 = \"$dir_database/$dir_ligosrc/$hmf2\";" >> ig_elevation.cfg
# ZFactor2 is the heightmap factor
zf2=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor2" | sed -e 's/ligo_export_zfactor2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor2 = $zf2;" >> ig_elevation.cfg
echo "LandFile = \"$dir_database/$dir_ligosrc/$land_name\";" >> ig_elevation.cfg
ig_elevation ig_elevation.cfg
# elevation of the heightmap for land_ligo
# ++++++++++++++++++++++++++++++++++++++++++++
rm ig_elevation.cfg
echo "// ig_elevation.cfg" > ig_elevation.cfg
echo "OutputIGDir = \"ig_land_ligo_elev\";" >> ig_elevation.cfg
echo "InputIGDir = \"ig_land_ligo\";" >> ig_elevation.cfg
echo "CellSize = 160.0;" >> ig_elevation.cfg
# HeightMapFile1 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
hmf1=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap1" | sed -e 's/ligo_export_heightmap1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile1 = \"$dir_database/$dir_ligosrc/$hmf1\";" >> ig_elevation.cfg
# ZFactor1 is the heightmap factor
zf1=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor1" | sed -e 's/ligo_export_zfactor1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor1 = $zf1;" >> ig_elevation.cfg
# HeightMapFile2 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf2=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap2" | sed -e 's/ligo_export_heightmap2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile2 = \"$dir_database/$dir_ligosrc/$hmf2\";" >> ig_elevation.cfg
# ZFactor2 is the heightmap factor
zf2=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor2" | sed -e 's/ligo_export_zfactor2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor2 = $zf2;" >> ig_elevation.cfg
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "LandFile = \"$dir_database/$dir_ligosrc/$land_name\";" >> ig_elevation.cfg
ig_elevation ig_elevation.cfg
else
echo [Prim IG] OFF
echo [Prim IG] OFF >> log.log
fi
else
echo [Prim IG] OFF
echo [Prim IG] OFF >> log.log
fi
# Erase ig in ig_merge_tmp and ig_land_compare
rm ig_merge_tmp/*
rm ig_land_compare/*
# Merge ig in ig_land_ld with ig_land_max_elev in ig_merge_tmp
dir_current=`pwd`
cd ig_land_ld
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_land_max_elev ?
if test -e ig_land_max_elev/$filename ; then
# Yes, lets merge it
ig_add ig_merge_tmp/$filename ig_land_max_elev/$filename ig_land_ld/$filename ;
else
# No, only copy it
cp ig_land_ld/$filename ig_merge_tmp/$filename ;
fi
# Idle
../../idle.bat
done
# Merge ig in ig_land_max_elev with ig_land_ld in ig_merge_tmp
cd ig_land_max_elev
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_land_ld ?
if !(test -e ig_land_ld/$filename) then
# No, only copy it
cp ig_land_max_elev/$filename ig_merge_tmp/$filename ;
fi
# Idle
../../idle.bat
done
# Merge ig in ig_merge_tmp with ig_land_ligo_elev in ig_land_compare
cd ig_merge_tmp
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_land_ligo_elev ?
if (test -e ig_land_ligo_elev/$filename) then
# Yes, lets merge it
ig_add ig_land_compare/$filename ig_merge_tmp/$filename ig_land_ligo_elev/$filename ;
else
# No, only copy it
cp ig_merge_tmp/$filename ig_land_compare/$filename ;
fi
# Idle
../../idle.bat
done
# Merge ig in ig_land_ligo_elev with ig_merge_tmp in ig_land_compare
cd ig_land_ligo_elev
list_ig=`ls -1 *.[iI][gG] 2> /dev/null`
cd $dir_current
for filename in $list_ig ; do
# Does this file exist in ig_merge_tmp ?
if !(test -e ig_merge_tmp/$filename) then
# No, only copy it
cp ig_land_ligo_elev/$filename ig_land_compare/$filename ;
fi
# Idle
../../idle.bat
done
# Compare and update
cd ig_land_compare
list_ig=`ls -1 *.[iI][gG]`
for filename in $list_ig ; do
echo "Checking $filename for update"
if test -e ../ig_land/$filename ; then
must_update=`diff --binary -q $filename ../ig_land/$filename` ;
else
must_update=YES ;
fi
if test -n "$must_update" ; then
echo " Updating"
cp -u -p $filename ../ig_land/$filename ;
fi
# Idle
../../../idle.bat
done
cd ../ig_land
list_ig=`ls -1 *.[iI][gG]`
for filename in $list_ig ; do
if !(test -e ../ig_land_compare/$filename) then
echo "Remove $filename"
rm $filename ;
fi
# Idle
../../../idle.bat
done
cd $dir_current
# ******************
# List all the zones
# ******************
# Get the landscape name
landscape_name=`cat ../../cfg/config.cfg | grep "landscape_name" | sed -e 's/landscape_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Landscape name exist ?
if ( test "$landscape_name" )
then
# If the list file exists, erase it
if ( test -f "$landscape_name"_ig.txt )
then
rm "$landscape_name"_ig.txt
fi
cd ig_land
for i in *.[iI][gG] ; do
# Build an ig list
if ( test -f $i )
then
echo $i >> ../"$landscape_name"_ig.txt
else
echo >> ../"$landscape_name"_ig.txt
fi
done
cd ..
# Idle
../../idle.bat
fi

@ -1,90 +1,90 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export ig files (.ig) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "ig_export_timeout" | sed -e 's/ig_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ig directories
ig_land_source_directories=`cat ../../cfg/directories.cfg | grep "ig_land_source_directory" | sed -e 's/ig_land_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ig directories
ig_other_source_directories=`cat ../../cfg/directories.cfg | grep "ig_other_source_directory" | sed -e 's/ig_other_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export ig >> log.log
echo ------- >> log.log
echo -------
echo --- Export ig
echo -------
date >> log.log
date
# For each directoy
# List landscape ig
for i in $ig_land_source_directories ; do
# Copy the script
cat maxscript/ig_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/ig/log.log&g" | sed -e "s&ig_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/ig/tag&g" | sed -e "s&output_directory_ig&$build_gamedata_directory/processes/ig/ig_land_max&g" > $max_directory/scripts/ig_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
done
for i in $ig_other_source_directories ; do
# Copy the script
cat maxscript/ig_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/ig/log.log&g" | sed -e "s&ig_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/ig/tag&g" | sed -e "s&output_directory_ig&$build_gamedata_directory/processes/ig/ig_other&g" > $max_directory/scripts/ig_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export ig files (.ig) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "ig_export_timeout" | sed -e 's/ig_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ig directories
ig_land_source_directories=`cat ../../cfg/directories.cfg | grep "ig_land_source_directory" | sed -e 's/ig_land_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ig directories
ig_other_source_directories=`cat ../../cfg/directories.cfg | grep "ig_other_source_directory" | sed -e 's/ig_other_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export ig >> log.log
echo ------- >> log.log
echo -------
echo --- Export ig
echo -------
date >> log.log
date
# For each directoy
# List landscape ig
for i in $ig_land_source_directories ; do
# Copy the script
cat maxscript/ig_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/ig/log.log&g" | sed -e "s&ig_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/ig/tag&g" | sed -e "s&output_directory_ig&$build_gamedata_directory/processes/ig/ig_land_max&g" > $max_directory/scripts/ig_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
done
for i in $ig_other_source_directories ; do
# Copy the script
cat maxscript/ig_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/ig/log.log&g" | sed -e "s&ig_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/ig/tag&g" | sed -e "s&output_directory_ig&$build_gamedata_directory/processes/ig/ig_other&g" > $max_directory/scripts/ig_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript ig_export.ms -q -mi -vn
# Idle
../../idle.bat
done

@ -1,30 +1,30 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install ig in the client data
# Get the ig install directory
ig_install_directory=`cat ../../cfg/directories.cfg | grep "ig_install_directory" | sed -e 's/ig_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the landscape name
landscape_name=`cat ../../cfg/config.cfg | grep "landscape_name" | sed -e 's/landscape_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Ig >> log.log
echo ------- >> log.log
echo -------
echo --- Install Ig
echo -------
date >> log.log
date
cp -u -p "$landscape_name"_ig.txt $client_directory/$ig_install_directory 2>> log.log
# Do not copy ig_land, because zone process will copy zone ig lighted versions into client directory.
#cp -u -p ig_land/*.[iI][gG] $client_directory/$ig_install_directory 2>> log.log
# Do not copy ig_other, because ig_light process will copy ig lighted versions into client directory.
#cp -u -p ig_other/*.[iI][gG] $client_directory/$ig_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install ig in the client data
# Get the ig install directory
ig_install_directory=`cat ../../cfg/directories.cfg | grep "ig_install_directory" | sed -e 's/ig_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the landscape name
landscape_name=`cat ../../cfg/config.cfg | grep "landscape_name" | sed -e 's/landscape_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Ig >> log.log
echo ------- >> log.log
echo -------
echo --- Install Ig
echo -------
date >> log.log
date
cp -u -p "$landscape_name"_ig.txt $client_directory/$ig_install_directory 2>> log.log
# Do not copy ig_land, because zone process will copy zone ig lighted versions into client directory.
#cp -u -p ig_land/*.[iI][gG] $client_directory/$ig_install_directory 2>> log.log
# Do not copy ig_other, because ig_light process will copy ig lighted versions into client directory.
#cp -u -p ig_other/*.[iI][gG] $client_directory/$ig_install_directory 2>> log.log

@ -1,23 +1,23 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install ig in the client data
# Get the ig install directory
ig_install_directory=`cat ../../cfg/directories.cfg | grep "ig_install_directory" | sed -e 's/ig_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Lighted Ig >> log.log
echo ------- >> log.log
echo -------
echo --- Install Lighted Ig
echo -------
date >> log.log
date
cp -u -p -R ig_other_lighted/. $client_directory/$ig_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install ig in the client data
# Get the ig install directory
ig_install_directory=`cat ../../cfg/directories.cfg | grep "ig_install_directory" | sed -e 's/ig_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Lighted Ig >> log.log
echo ------- >> log.log
echo -------
echo --- Install Lighted Ig
echo -------
date >> log.log
date
cp -u -p -R ig_other_lighted/. $client_directory/$ig_install_directory 2>> log.log

@ -1,60 +1,60 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Build interface
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface directories
interface_source_directories=`cat ../../cfg/directories.cfg | grep "interface_source_directories" | sed -e 's/interface_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface directories to compress in one DXTC only
interface_source_dxtc_directories=`cat ../../cfg/directories.cfg | grep "interface_source_dxtc_directories" | sed -e 's/interface_source_dxtc_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Build interface >> log.log
echo ------- >> log.log
echo -------
echo --- Build interface
echo -------
date >> log.log
date
# For each interface directory
for i in $interface_source_directories ; do
# Copy
niouname=`echo $i | sed -e 's&/&_&g'`
rm tga_tmp/*.[tT][gG][aA]
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga_tmp 2>> log.log
build_interface.exe tga/texture_$niouname.tga tga_tmp
# Idle
../../idle.bat
done
# For each interface directory to compress in one DXTC
rm tga_tmp/*.[tT][gG][aA]
for i in $interface_source_dxtc_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga_tmp 2>> log.log
done
# build all files in tga_tmp into one tga. Let the OpenGL compress it at runTime (better result for some important cases)
build_interface.exe tga/texture_interfaces_dxtc.tga tga_tmp
# DO NOT COMPRESS ../../bin/tga2dds tga_tmp/texture_interfaces_dxtc.tga -o tga/texture_interfaces_dxtc.dds -a 5
# Compress animation. Important to avoid 'memory fragmentation'
mv -u 3d/*.[aA][nN][iI][mM] anim_tmp 2>> log.log
anim_builder.exe anim_tmp 3d ../../cfg/properties.cfg
# Idle
../../idle.bat
#!/bin/bash
rm log.log 2> /dev/null
# *** Build interface
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface directories
interface_source_directories=`cat ../../cfg/directories.cfg | grep "interface_source_directories" | sed -e 's/interface_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface directories to compress in one DXTC only
interface_source_dxtc_directories=`cat ../../cfg/directories.cfg | grep "interface_source_dxtc_directories" | sed -e 's/interface_source_dxtc_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Build interface >> log.log
echo ------- >> log.log
echo -------
echo --- Build interface
echo -------
date >> log.log
date
# For each interface directory
for i in $interface_source_directories ; do
# Copy
niouname=`echo $i | sed -e 's&/&_&g'`
rm tga_tmp/*.[tT][gG][aA]
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga_tmp 2>> log.log
build_interface.exe tga/texture_$niouname.tga tga_tmp
# Idle
../../idle.bat
done
# For each interface directory to compress in one DXTC
rm tga_tmp/*.[tT][gG][aA]
for i in $interface_source_dxtc_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga_tmp 2>> log.log
done
# build all files in tga_tmp into one tga. Let the OpenGL compress it at runTime (better result for some important cases)
build_interface.exe tga/texture_interfaces_dxtc.tga tga_tmp
# DO NOT COMPRESS ../../bin/tga2dds tga_tmp/texture_interfaces_dxtc.tga -o tga/texture_interfaces_dxtc.dds -a 5
# Compress animation. Important to avoid 'memory fragmentation'
mv -u 3d/*.[aA][nN][iI][mM] anim_tmp 2>> log.log
anim_builder.exe anim_tmp 3d ../../cfg/properties.cfg
# Idle
../../idle.bat

@ -1,62 +1,62 @@
#!/bin/bash
rm log.log 2> /dev/null
# Bin
tga_2_dds='tga2dds.exe'
# *** Export interface tile (.tga)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface fullscreen directories
interface_fullscreen_directories=`cat ../../cfg/directories.cfg | grep "interface_fullscreen_directories" | sed -e 's/interface_fullscreen_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface 3d directories
interface_3d_directories=`cat ../../cfg/directories.cfg | grep "interface_3d_directories" | sed -e 's/interface_3d_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export interface >> log.log
echo ------- >> log.log
echo -------
echo --- Export interface
echo -------
date >> log.log
date
# For each interface fullscreen directory compress independently all in dds
rm tga_tmp/*.[tT][gG][aA]
for i in $interface_fullscreen_directories; do
# Copy
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga_tmp 2>> log.log
# Idle
../../idle.bat
done
for i in tga_tmp/*.[tT][gG][aA] ; do
# Destination file
dest=`echo $i | sed -e 's/tga_tmp/tga/g'`
dest=`echo $dest | sed -e 's/\.[tT][gG][aA]/.dds/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# Convert
$tga_2_dds $i -o $dest -a 5 2>> log.log
fi
# Idle
../../idle.bat
done
# For each interface 3d directory
for i in $interface_3d_directories; do
# Copy
cp -u -p $database_directory/$i/* 3d 2>> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# Bin
tga_2_dds='tga2dds.exe'
# *** Export interface tile (.tga)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface fullscreen directories
interface_fullscreen_directories=`cat ../../cfg/directories.cfg | grep "interface_fullscreen_directories" | sed -e 's/interface_fullscreen_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the interface 3d directories
interface_3d_directories=`cat ../../cfg/directories.cfg | grep "interface_3d_directories" | sed -e 's/interface_3d_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export interface >> log.log
echo ------- >> log.log
echo -------
echo --- Export interface
echo -------
date >> log.log
date
# For each interface fullscreen directory compress independently all in dds
rm tga_tmp/*.[tT][gG][aA]
for i in $interface_fullscreen_directories; do
# Copy
cp -u -p $database_directory/$i/*.[tT][gG][aA] tga_tmp 2>> log.log
# Idle
../../idle.bat
done
for i in tga_tmp/*.[tT][gG][aA] ; do
# Destination file
dest=`echo $i | sed -e 's/tga_tmp/tga/g'`
dest=`echo $dest | sed -e 's/\.[tT][gG][aA]/.dds/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# Convert
$tga_2_dds $i -o $dest -a 5 2>> log.log
fi
# Idle
../../idle.bat
done
# For each interface 3d directory
for i in $interface_3d_directories; do
# Copy
cp -u -p $database_directory/$i/* 3d 2>> log.log
# Idle
../../idle.bat
done

@ -1,24 +1,24 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the interface in the client data
# Get the interface install directory
interface_install_directory=`cat ../../cfg/directories.cfg | grep "interface_install_directory" | sed -e 's/interface_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install interface >> log.log
echo ------- >> log.log
echo -------
echo --- Install interface
echo -------
date >> log.log
date
cp -u -p -R tga/. $client_directory/$interface_install_directory 2>> log.log
cp -u -p -R 3d/. $client_directory/$interface_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the interface in the client data
# Get the interface install directory
interface_install_directory=`cat ../../cfg/directories.cfg | grep "interface_install_directory" | sed -e 's/interface_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install interface >> log.log
echo ------- >> log.log
echo -------
echo --- Install interface
echo -------
date >> log.log
date
cp -u -p -R tga/. $client_directory/$interface_install_directory 2>> log.log
cp -u -p -R 3d/. $client_directory/$interface_install_directory 2>> log.log

@ -1,202 +1,202 @@
#!/bin/bash
rm log.log 2> /dev/null
echo > log.log
# ********************
# Make the config file
# ********************
exec_timeout='exec_timeout.exe'
# Get the timeout
land_exporter_timeout=`cat ../../cfg/config.cfg | grep "ligo_build_timeout" | sed -e 's/ligo_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
rm land_exporter.cfg
echo "// land_exporter.cfg" > land_exporter.cfg
# OutZoneDir is Where to put all .zone generated
#dir_gamedata=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
#echo "OutZoneDir = \"$dir_gamedata/processes/ligo/output\";" >> land_exporter.cfg
echo "OutZoneDir = \"output\";" >> land_exporter.cfg
echo "OutIGDir = \"../ig/ig_land_ligo\";" >> land_exporter.cfg
echo "AdditionnalIGOutDir = \"../ig/ig_other\";" >> land_exporter.cfg
# RefZoneDir is Where the reference zones are
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligobricks=`cat ../../cfg/directories.cfg | grep "ligo_bricks_directory" | sed -e 's/ligo_bricks_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_dfn=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_world=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# dir_continents=`cat ../../cfg/site.cfg | grep "continents_directory" | sed -e 's/continents_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "RefZoneDir = \"$dir_ligobricks/zones\";" >> land_exporter.cfg
echo "RefIGDir = \"$dir_ligobricks/igs\";" >> land_exporter.cfg
echo "AdditionnalIGInDir = \"$dir_ligobricks/igs\";" >> land_exporter.cfg
# echo "ContinentsDir = \"$dir_continents\";" >> land_exporter.cfg
echo "ContinentsDir = \"$dir_world\";" >> land_exporter.cfg
# LigoBankDir is Where all .ligozone are (those used by the .land)
echo "LigoBankDir = \"$dir_ligobricks/zoneligos\";" >> land_exporter.cfg
# TileBankFile is the .bank file (used to know if a tile is oriented and the like)
name_bank=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "TileBankFile = $name_bank" >> land_exporter.cfg
# ColorMapFile
cmf=`cat ../../cfg/config.cfg | grep "ligo_export_colormap" | sed -e 's/ligo_export_colormap//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ColorMapFile = \"$dir_database/$dir_ligosrc/$cmf\";" >> land_exporter.cfg
# HeightMapFile1 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf1=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap1" | sed -e 's/ligo_export_heightmap1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile1 = \"$dir_database/$dir_ligosrc/$hmf1\";" >> land_exporter.cfg
# ZFactor1 is the heightmap factor
zf1=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor1" | sed -e 's/ligo_export_zfactor1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor1 = $zf1;" >> land_exporter.cfg
# HeightMapFile2 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf2=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap2" | sed -e 's/ligo_export_heightmap2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile2 = \"$dir_database/$dir_ligosrc/$hmf2\";" >> land_exporter.cfg
# ZFactor2 is the heightmap factor
zf2=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor2" | sed -e 's/ligo_export_zfactor2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor2 = $zf2;" >> land_exporter.cfg
# ZoneLight is Roughly light the zone (0-none, 1-patch, 2-noise)
echo "ZoneLight = 0;" >> land_exporter.cfg
# CellSize is the size of the cell (zone size) in meter
echo "CellSize = 160;" >> land_exporter.cfg
# Threshild is the weld threshold in meter
echo "Threshold = 1;" >> land_exporter.cfg
# Where to take dfn files
echo "DFNDir = \"$dir_dfn\";" >> land_exporter.cfg
# CMB input directory
echo "RefCMBDir = \"$dir_ligobricks/cmb\";" >> land_exporter.cfg
# CMB output directory
echo "OutCMBDir = \"../rbank/cmb\";" >> land_exporter.cfg
#input .continent file
echo "ContinentFile = \"$dir_world/$continent_file\";" >> land_exporter.cfg
# Force export of collisions and additionnal igs
echo "ExportCollisions = 1;" >> land_exporter.cfg
echo "ExportAdditionnalIGs = 1;" >> land_exporter.cfg
# ZoneRegionFile is the .land to compute
dir_current=`pwd`
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZoneRegionFile = \"$dir_database/$dir_ligosrc/$land_name\";" >> land_exporter.cfg
# if there is no .land then do not generate all zones and zone welded
if test -z "$land_name" ; then
echo No .land set -- Exiting --
exit;
fi
# *******************
# launch the exporter
# *******************
echo ------- >> log.log
echo --- Generate ligo zone >> log.log
echo ------- >> log.log
echo -------
echo --- Generate ligo zone
echo -------
date >> log.log
date
echo Exporting
$exec_timeout $land_exporter_timeout land_export.exe land_exporter.cfg
# rename *.[zZ][oO][nN][eE][lL] *.[zZ][oO][nN][eE]
# script is just too slow to do renaming... And we can't call directly dos command
cd output
../sh/renametozone.bat
cd ..
# **************
# Copy the zones
# **************
cd ../zone
mkdir zone_exported 2> /dev/null
# Try to copy ligo zone if any
# ****************************
ligo_flag=`cat ../../cfg/config.cfg | grep "process_to_complete" | grep "ligo"`
dir_current=`pwd`
cd ../ligo/output
list_zone=`ls -1 *.[zZ][oO][nN][eE]*`
for filename in $list_zone ; do
echo "Checking $filename for update"
if test -e ../../zone/zone_exported/$filename ; then
must_update=`diff --binary -q $filename ../../zone/zone_exported/$filename` ;
else
must_update=YES ;
fi
if test -n "$must_update" ; then
echo " Updating"
cp -u -p $filename ../../zone/zone_exported/$filename ;
fi
# Idle
../../../idle.bat
done
cd $dir_current
# delete files only present in the zone_exported directory
if ( test "$ligo_flag" )
then
cd ./zone_exported
list_zone=`ls -1 *.[zZ][oO][nN][eE]*`
for filename in $list_zone ; do
if test -e ../../ligo/output/$filename ; then
must_update=NO ;
else
echo "Removing $filename"
rm $filename ;
fi
# Idle
../../../idle.bat
done
cd ..
fi
#!/bin/bash
rm log.log 2> /dev/null
echo > log.log
# ********************
# Make the config file
# ********************
exec_timeout='exec_timeout.exe'
# Get the timeout
land_exporter_timeout=`cat ../../cfg/config.cfg | grep "ligo_build_timeout" | sed -e 's/ligo_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
rm land_exporter.cfg
echo "// land_exporter.cfg" > land_exporter.cfg
# OutZoneDir is Where to put all .zone generated
#dir_gamedata=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
#echo "OutZoneDir = \"$dir_gamedata/processes/ligo/output\";" >> land_exporter.cfg
echo "OutZoneDir = \"output\";" >> land_exporter.cfg
echo "OutIGDir = \"../ig/ig_land_ligo\";" >> land_exporter.cfg
echo "AdditionnalIGOutDir = \"../ig/ig_other\";" >> land_exporter.cfg
# RefZoneDir is Where the reference zones are
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_ligobricks=`cat ../../cfg/directories.cfg | grep "ligo_bricks_directory" | sed -e 's/ligo_bricks_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_dfn=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
dir_world=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# dir_continents=`cat ../../cfg/site.cfg | grep "continents_directory" | sed -e 's/continents_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "RefZoneDir = \"$dir_ligobricks/zones\";" >> land_exporter.cfg
echo "RefIGDir = \"$dir_ligobricks/igs\";" >> land_exporter.cfg
echo "AdditionnalIGInDir = \"$dir_ligobricks/igs\";" >> land_exporter.cfg
# echo "ContinentsDir = \"$dir_continents\";" >> land_exporter.cfg
echo "ContinentsDir = \"$dir_world\";" >> land_exporter.cfg
# LigoBankDir is Where all .ligozone are (those used by the .land)
echo "LigoBankDir = \"$dir_ligobricks/zoneligos\";" >> land_exporter.cfg
# TileBankFile is the .bank file (used to know if a tile is oriented and the like)
name_bank=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "TileBankFile = $name_bank" >> land_exporter.cfg
# ColorMapFile
cmf=`cat ../../cfg/config.cfg | grep "ligo_export_colormap" | sed -e 's/ligo_export_colormap//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ColorMapFile = \"$dir_database/$dir_ligosrc/$cmf\";" >> land_exporter.cfg
# HeightMapFile1 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf1=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap1" | sed -e 's/ligo_export_heightmap1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile1 = \"$dir_database/$dir_ligosrc/$hmf1\";" >> land_exporter.cfg
# ZFactor1 is the heightmap factor
zf1=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor1" | sed -e 's/ligo_export_zfactor1//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor1 = $zf1;" >> land_exporter.cfg
# HeightMapFile2 is the grayscale .tga file (127 is 0, 0 is -127*ZFactor and 255 is +128*ZFactor)
hmf2=`cat ../../cfg/config.cfg | grep "ligo_export_heightmap2" | sed -e 's/ligo_export_heightmap2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "HeightMapFile2 = \"$dir_database/$dir_ligosrc/$hmf2\";" >> land_exporter.cfg
# ZFactor2 is the heightmap factor
zf2=`cat ../../cfg/config.cfg | grep "ligo_export_zfactor2" | sed -e 's/ligo_export_zfactor2//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZFactor2 = $zf2;" >> land_exporter.cfg
# ZoneLight is Roughly light the zone (0-none, 1-patch, 2-noise)
echo "ZoneLight = 0;" >> land_exporter.cfg
# CellSize is the size of the cell (zone size) in meter
echo "CellSize = 160;" >> land_exporter.cfg
# Threshild is the weld threshold in meter
echo "Threshold = 1;" >> land_exporter.cfg
# Where to take dfn files
echo "DFNDir = \"$dir_dfn\";" >> land_exporter.cfg
# CMB input directory
echo "RefCMBDir = \"$dir_ligobricks/cmb\";" >> land_exporter.cfg
# CMB output directory
echo "OutCMBDir = \"../rbank/cmb\";" >> land_exporter.cfg
#input .continent file
echo "ContinentFile = \"$dir_world/$continent_file\";" >> land_exporter.cfg
# Force export of collisions and additionnal igs
echo "ExportCollisions = 1;" >> land_exporter.cfg
echo "ExportAdditionnalIGs = 1;" >> land_exporter.cfg
# ZoneRegionFile is the .land to compute
dir_current=`pwd`
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "ZoneRegionFile = \"$dir_database/$dir_ligosrc/$land_name\";" >> land_exporter.cfg
# if there is no .land then do not generate all zones and zone welded
if test -z "$land_name" ; then
echo No .land set -- Exiting --
exit;
fi
# *******************
# launch the exporter
# *******************
echo ------- >> log.log
echo --- Generate ligo zone >> log.log
echo ------- >> log.log
echo -------
echo --- Generate ligo zone
echo -------
date >> log.log
date
echo Exporting
$exec_timeout $land_exporter_timeout land_export.exe land_exporter.cfg
# rename *.[zZ][oO][nN][eE][lL] *.[zZ][oO][nN][eE]
# script is just too slow to do renaming... And we can't call directly dos command
cd output
../sh/renametozone.bat
cd ..
# **************
# Copy the zones
# **************
cd ../zone
mkdir zone_exported 2> /dev/null
# Try to copy ligo zone if any
# ****************************
ligo_flag=`cat ../../cfg/config.cfg | grep "process_to_complete" | grep "ligo"`
dir_current=`pwd`
cd ../ligo/output
list_zone=`ls -1 *.[zZ][oO][nN][eE]*`
for filename in $list_zone ; do
echo "Checking $filename for update"
if test -e ../../zone/zone_exported/$filename ; then
must_update=`diff --binary -q $filename ../../zone/zone_exported/$filename` ;
else
must_update=YES ;
fi
if test -n "$must_update" ; then
echo " Updating"
cp -u -p $filename ../../zone/zone_exported/$filename ;
fi
# Idle
../../../idle.bat
done
cd $dir_current
# delete files only present in the zone_exported directory
if ( test "$ligo_flag" )
then
cd ./zone_exported
list_zone=`ls -1 *.[zZ][oO][nN][eE]*`
for filename in $list_zone ; do
if test -e ../../ligo/output/$filename ; then
must_update=NO ;
else
echo "Removing $filename"
rm $filename ;
fi
# Idle
../../../idle.bat
done
cd ..
fi

@ -1,72 +1,72 @@
#!/bin/bash
rm log.log 2> /dev/null
echo > log.log
# *** Export ligo zone files from Max ***
# *** ******************************* ***
echo ------- >> log.log
echo --- Export ligo zone >> log.log
echo ------- >> log.log
echo -------
echo --- Export ligo zone
echo -------
date >> log.log
date
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "ligo_export_timeout" | sed -e 's/ligo_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get current directory
dir_gamedata=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's&\/&\\\&g'`
dir_gamedata_maxscript=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the bank filename
bank_filename=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
bankfar_filename=`cat ../../cfg/properties.cfg | grep "bankfar_name" | sed -e 's/bankfar_name//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
# Copy the bank file
cp $bank_filename smallbank/ligo.smallbank 2>> log.log
cp $bankfar_filename smallbank/ligo.farbank 2>> log.log
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# delete ini file
rm $max_directory/plugcfg/nelligo.ini
# echo "$max_directory/plugcfg/nelligo.ini" >> log.log
# create the ini file
echo "[LigoConfig]" > $max_directory/plugcfg/nelligo.ini
# copy the ligo export script
cat maxscript/nel_ligo_export.ms | sed -e "s&output_directory_tag&$dir_gamedata_maxscript/processes/ligo/tag&g" | sed -e "s&output_logfile&$dir_gamedata_maxscript/processes/ligo/log.log&g" | sed -e "s&bankFilename&$dir_gamedata_maxscript/processes/ligo/smallbank/ligo.smallbank&g" > $max_directory/scripts/nel_ligo_export.ms
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's&\/&\\\&g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's&\/&\\\&g'`
echo "LigoPath=$dir_database\\$dir_ligosrc\\max\\" >> $max_directory/plugcfg/nelligo.ini
#echo "LigoExportPath=$dir_database\\$dir_ligosrc\\" >> $max_directory/plugcfg/nelligo.ini
echo "LigoExportPath=$dir_gamedata\\processes\\ligo\\" >> $max_directory/plugcfg/nelligo.ini
# export only if no .land set
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
ligo_export_one_pass=`cat ../../cfg/config.cfg | grep "ligo_export_one_pass" | sed -e 's/ligo_export_one_pass//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
if [ -z "$land_name" -o "$ligo_export_one_pass" == "1" ] ; then
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript nel_ligo_export.ms -q -mi -vn
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript nel_ligo_export.ms -q -mi -vn
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript nel_ligo_export.ms -q -mi -vn
fi
#!/bin/bash
rm log.log 2> /dev/null
echo > log.log
# *** Export ligo zone files from Max ***
# *** ******************************* ***
echo ------- >> log.log
echo --- Export ligo zone >> log.log
echo ------- >> log.log
echo -------
echo --- Export ligo zone
echo -------
date >> log.log
date
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "ligo_export_timeout" | sed -e 's/ligo_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get current directory
dir_gamedata=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's&\/&\\\&g'`
dir_gamedata_maxscript=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the bank filename
bank_filename=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
bankfar_filename=`cat ../../cfg/properties.cfg | grep "bankfar_name" | sed -e 's/bankfar_name//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
# Copy the bank file
cp $bank_filename smallbank/ligo.smallbank 2>> log.log
cp $bankfar_filename smallbank/ligo.farbank 2>> log.log
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# delete ini file
rm $max_directory/plugcfg/nelligo.ini
# echo "$max_directory/plugcfg/nelligo.ini" >> log.log
# create the ini file
echo "[LigoConfig]" > $max_directory/plugcfg/nelligo.ini
# copy the ligo export script
cat maxscript/nel_ligo_export.ms | sed -e "s&output_directory_tag&$dir_gamedata_maxscript/processes/ligo/tag&g" | sed -e "s&output_logfile&$dir_gamedata_maxscript/processes/ligo/log.log&g" | sed -e "s&bankFilename&$dir_gamedata_maxscript/processes/ligo/smallbank/ligo.smallbank&g" > $max_directory/scripts/nel_ligo_export.ms
dir_database=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's&\/&\\\&g'`
dir_ligosrc=`cat ../../cfg/directories.cfg | grep "ligo_source_directory" | sed -e 's/ligo_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's&\/&\\\&g'`
echo "LigoPath=$dir_database\\$dir_ligosrc\\max\\" >> $max_directory/plugcfg/nelligo.ini
#echo "LigoExportPath=$dir_database\\$dir_ligosrc\\" >> $max_directory/plugcfg/nelligo.ini
echo "LigoExportPath=$dir_gamedata\\processes\\ligo\\" >> $max_directory/plugcfg/nelligo.ini
# export only if no .land set
land_name=`cat ../../cfg/config.cfg | grep "ligo_export_land" | sed -e 's/ligo_export_land//' | sed -e 's/ //g' | sed -e 's/=//g'`
ligo_export_one_pass=`cat ../../cfg/config.cfg | grep "ligo_export_one_pass" | sed -e 's/ligo_export_one_pass//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
if [ -z "$land_name" -o "$ligo_export_one_pass" == "1" ] ; then
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript nel_ligo_export.ms -q -mi -vn
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript nel_ligo_export.ms -q -mi -vn
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript nel_ligo_export.ms -q -mi -vn
fi

@ -1,140 +1,140 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Build map files (.tga / .dds)
# Bin
tga_2_dds='tga2dds.exe'
# Log error
echo ------- > log.log
echo --- Build map >> log.log
echo ------- >> log.log
echo -------
echo --- Build map
echo -------
date >> log.log
date
#*** Build panoply files (.tga / .dds), and copy the result in the tga directory
# Copy panoply containt into cache if the process as been stopped before the end of build.
echo Copy panoply into cache
cp -u -p -R panoply/. cache 2>> log.log
echo Remove panoply directory
rm -r panoply 2>> log.log
echo Copy hlsinfo into cache
cp -u -p -R hlsinfo/. cache 2>> log.log
echo Remove hlsinfo directory
rm -r hlsinfo 2>> log.log
mkdir panoply
mkdir hlsinfo
# Bin
panoply_maker='panoply_maker.exe'
# Log error
echo ------- > log.log
echo --- Build panoply >> log.log
echo ------- >> log.log
echo -------
echo --- Build panoply
echo -------
date >> log.log
date
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Reduce bitmap size factor
reduce_bitmap_factor=`cat ../../cfg/config.cfg | grep "reduce_bitmap_factor" | sed -e 's/reduce_bitmap_factor//' | sed -e 's/ //g' | sed -e 's/=//g'`
panoply_file_list=`cat ../../cfg/config.cfg | grep "panoply_file_list" | sed -e 's/panoply_file_list//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$panoply_file_list" ; then
rm $panoply_file_list
panoply_config_file=`cat ../../cfg/directories.cfg | grep "panoply_config_file" | sed -e 's/panoply_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
for psource in $panoply_config_file ; do
cp $database_directory/$psource current_panoply.cfg
echo "output_path=\"panoply\";" >> current_panoply.cfg
echo "cache_path=\"cache\";" >> current_panoply.cfg
panoply_maker.exe current_panoply.cfg
# Idle
../../idle.bat
done
ls panoply >> $panoply_file_list
fi
# For each directoy
for i in tga/*.[tT][gG][aA] ; do
# Destination file
dest=`echo $i | sed -e 's/[tT][gG][aA]/dds/' | sed -e 's/\.[tT][gG][aA]/.dds/g'`
dds=`echo $i | sed -e 's/\.[tT][gG][aA]/.dds/g'`
# Convert the lightmap in 16 bits mode
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# Copy the dds file
if (test -f $dds)
then
cp $dds $dest
fi
# Convert
$tga_2_dds $i -o $dest -m -r$reduce_bitmap_factor 2>> log.log
fi
# Idle
../../idle.bat
done
for i in panoply/*.[tT][gG][aA] ; do
# Destination file
dest=`echo $i | sed -e 's%panoply/%dds/%g' | sed -e 's/[tT][gG][aA]/dds/g'`
dds=`echo $i | sed -e 's/\.[tT][gG][aA]/.dds/g'`
# Convert the lightmap in 16 bits mode
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# Copy the dds file
if (test -f $dds)
then
cp $dds $dest
fi
# Convert
$tga_2_dds $i -o $dest -m -r$reduce_bitmap_factor 2>> log.log
fi
# Idle
../../idle.bat
done
# Bin
hls_bank_maker='hls_bank_maker.exe'
# build the HLSBank (if hlsInfo present, and if build wanted)
hls_bank_file_name=`cat ../../cfg/config.cfg | grep "hls_bank_file_name" | sed -e 's/hls_bank_file_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$hls_bank_file_name" ; then
rm $hls_bank_file_name
$hls_bank_maker hlsinfo $hls_bank_file_name
fi
# Put old panoply in cache
echo Remove the panoply cache
rm -r cache 2>> log.log
echo Rename panoply as cache
mv panoply cache 2>> log.log
echo Move hlsinfo into cache
cp -u -p -R hlsinfo/. cache 2>> log.log
echo Remove the hlsinfo
rm -r hlsinfo 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# *** Build map files (.tga / .dds)
# Bin
tga_2_dds='tga2dds.exe'
# Log error
echo ------- > log.log
echo --- Build map >> log.log
echo ------- >> log.log
echo -------
echo --- Build map
echo -------
date >> log.log
date
#*** Build panoply files (.tga / .dds), and copy the result in the tga directory
# Copy panoply containt into cache if the process as been stopped before the end of build.
echo Copy panoply into cache
cp -u -p -R panoply/. cache 2>> log.log
echo Remove panoply directory
rm -r panoply 2>> log.log
echo Copy hlsinfo into cache
cp -u -p -R hlsinfo/. cache 2>> log.log
echo Remove hlsinfo directory
rm -r hlsinfo 2>> log.log
mkdir panoply
mkdir hlsinfo
# Bin
panoply_maker='panoply_maker.exe'
# Log error
echo ------- > log.log
echo --- Build panoply >> log.log
echo ------- >> log.log
echo -------
echo --- Build panoply
echo -------
date >> log.log
date
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Reduce bitmap size factor
reduce_bitmap_factor=`cat ../../cfg/config.cfg | grep "reduce_bitmap_factor" | sed -e 's/reduce_bitmap_factor//' | sed -e 's/ //g' | sed -e 's/=//g'`
panoply_file_list=`cat ../../cfg/config.cfg | grep "panoply_file_list" | sed -e 's/panoply_file_list//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$panoply_file_list" ; then
rm $panoply_file_list
panoply_config_file=`cat ../../cfg/directories.cfg | grep "panoply_config_file" | sed -e 's/panoply_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
for psource in $panoply_config_file ; do
cp $database_directory/$psource current_panoply.cfg
echo "output_path=\"panoply\";" >> current_panoply.cfg
echo "cache_path=\"cache\";" >> current_panoply.cfg
panoply_maker.exe current_panoply.cfg
# Idle
../../idle.bat
done
ls panoply >> $panoply_file_list
fi
# For each directoy
for i in tga/*.[tT][gG][aA] ; do
# Destination file
dest=`echo $i | sed -e 's/[tT][gG][aA]/dds/' | sed -e 's/\.[tT][gG][aA]/.dds/g'`
dds=`echo $i | sed -e 's/\.[tT][gG][aA]/.dds/g'`
# Convert the lightmap in 16 bits mode
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# Copy the dds file
if (test -f $dds)
then
cp $dds $dest
fi
# Convert
$tga_2_dds $i -o $dest -m -r$reduce_bitmap_factor 2>> log.log
fi
# Idle
../../idle.bat
done
for i in panoply/*.[tT][gG][aA] ; do
# Destination file
dest=`echo $i | sed -e 's%panoply/%dds/%g' | sed -e 's/[tT][gG][aA]/dds/g'`
dds=`echo $i | sed -e 's/\.[tT][gG][aA]/.dds/g'`
# Convert the lightmap in 16 bits mode
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# Copy the dds file
if (test -f $dds)
then
cp $dds $dest
fi
# Convert
$tga_2_dds $i -o $dest -m -r$reduce_bitmap_factor 2>> log.log
fi
# Idle
../../idle.bat
done
# Bin
hls_bank_maker='hls_bank_maker.exe'
# build the HLSBank (if hlsInfo present, and if build wanted)
hls_bank_file_name=`cat ../../cfg/config.cfg | grep "hls_bank_file_name" | sed -e 's/hls_bank_file_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$hls_bank_file_name" ; then
rm $hls_bank_file_name
$hls_bank_maker hlsinfo $hls_bank_file_name
fi
# Put old panoply in cache
echo Remove the panoply cache
rm -r cache 2>> log.log
echo Rename panoply as cache
mv panoply cache 2>> log.log
echo Move hlsinfo into cache
cp -u -p -R hlsinfo/. cache 2>> log.log
echo Remove the hlsinfo
rm -r hlsinfo 2>> log.log

@ -1,57 +1,57 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export maps files (.tga / *.[dD][dD][sS]) from the database
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the maps directories
map_source_directories=`cat ../../cfg/directories.cfg | grep "map_source_directory" | sed -e 's/map_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
map_uncompressed_source_directories=`cat ../../cfg/directories.cfg | grep "map_uncompressed_source_directory" | sed -e 's/map_uncompressed_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export map >> log.log
echo ------- >> log.log
echo -------
echo --- Export map
echo -------
date >> log.log
date
# For each directoy
for i in $map_source_directories; do
for j in $database_directory/$i/*.[tT][gG][aA]; do
if ( test -f $j )
then
# Get the dds version
dds=`echo $j | sed -e 's&.tga&.dds&g'`
# Copy the dds and the tga
cp -u -p $j tga 2>> log.log
if ( test -f $dds )
then
cp -u -p $dds tga 2>> log.log
fi
fi
done
# Idle
../../idle.bat
done
for i in $map_uncompressed_source_directories; do
for j in $database_directory/$i/*.[tT][gG][aA]; do
if ( test -f $j )
then
# Copy the dds and the tga
cp -u -p $j tga_uncompressed 2>> log.log
fi
done
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export maps files (.tga / *.[dD][dD][sS]) from the database
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the maps directories
map_source_directories=`cat ../../cfg/directories.cfg | grep "map_source_directory" | sed -e 's/map_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
map_uncompressed_source_directories=`cat ../../cfg/directories.cfg | grep "map_uncompressed_source_directory" | sed -e 's/map_uncompressed_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export map >> log.log
echo ------- >> log.log
echo -------
echo --- Export map
echo -------
date >> log.log
date
# For each directoy
for i in $map_source_directories; do
for j in $database_directory/$i/*.[tT][gG][aA]; do
if ( test -f $j )
then
# Get the dds version
dds=`echo $j | sed -e 's&.tga&.dds&g'`
# Copy the dds and the tga
cp -u -p $j tga 2>> log.log
if ( test -f $dds )
then
cp -u -p $dds tga 2>> log.log
fi
fi
done
# Idle
../../idle.bat
done
for i in $map_uncompressed_source_directories; do
for j in $database_directory/$i/*.[tT][gG][aA]; do
if ( test -f $j )
then
# Copy the dds and the tga
cp -u -p $j tga_uncompressed 2>> log.log
fi
done
# Idle
../../idle.bat
done

@ -1,55 +1,55 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install maps in the client data
# Get the skel install directory
bitmap_install_directory=`cat ../../cfg/directories.cfg | grep "bitmap_install_directory" | sed -e 's/bitmap_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install maps >> log.log
echo ------- >> log.log
echo -------
echo --- Install maps
echo -------
date >> log.log
date
cp -u -p -R dds/. $client_directory/$bitmap_install_directory 2>> log.log
cp -u -p -R tga_uncompressed/. $client_directory/$bitmap_install_directory 2>> log.log
panoply_file_list=`cat ../../cfg/config.cfg | grep "panoply_file_list" | sed -e 's/panoply_file_list//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$panoply_file_list" ; then
cp -u -p $panoply_file_list $client_directory/$bitmap_install_directory 2>> log.log
panoply_config_file=`cat ../../cfg/directories.cfg | grep "panoply_config_file" | sed -e 's/panoply_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
for psource in $panoply_config_file ; do
cp $database_directory/$psource $client_directory/$bitmap_install_directory/panoply.cfg
done
ls panoply >> $panoply_file_list
fi
# Install hlsbank in the client data, in the "maps/" directory
# Log error
echo --- Install hlsbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install hlsbank
echo -------
date >> log.log
date
# build the HLSBank (if hlsInfo present, and if build wanted)
hls_bank_file_name=`cat ../../cfg/config.cfg | grep "hls_bank_file_name" | sed -e 's/hls_bank_file_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$hls_bank_file_name" ; then
cp -u -p -R $hls_bank_file_name $client_directory/$bitmap_install_directory 2>> log.log
fi
#!/bin/bash
rm log.log 2> /dev/null
# Install maps in the client data
# Get the skel install directory
bitmap_install_directory=`cat ../../cfg/directories.cfg | grep "bitmap_install_directory" | sed -e 's/bitmap_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install maps >> log.log
echo ------- >> log.log
echo -------
echo --- Install maps
echo -------
date >> log.log
date
cp -u -p -R dds/. $client_directory/$bitmap_install_directory 2>> log.log
cp -u -p -R tga_uncompressed/. $client_directory/$bitmap_install_directory 2>> log.log
panoply_file_list=`cat ../../cfg/config.cfg | grep "panoply_file_list" | sed -e 's/panoply_file_list//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$panoply_file_list" ; then
cp -u -p $panoply_file_list $client_directory/$bitmap_install_directory 2>> log.log
panoply_config_file=`cat ../../cfg/directories.cfg | grep "panoply_config_file" | sed -e 's/panoply_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
for psource in $panoply_config_file ; do
cp $database_directory/$psource $client_directory/$bitmap_install_directory/panoply.cfg
done
ls panoply >> $panoply_file_list
fi
# Install hlsbank in the client data, in the "maps/" directory
# Log error
echo --- Install hlsbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install hlsbank
echo -------
date >> log.log
date
# build the HLSBank (if hlsInfo present, and if build wanted)
hls_bank_file_name=`cat ../../cfg/config.cfg | grep "hls_bank_file_name" | sed -e 's/hls_bank_file_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
if test "$hls_bank_file_name" ; then
cp -u -p -R $hls_bank_file_name $client_directory/$bitmap_install_directory 2>> log.log
fi

@ -1,59 +1,59 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export pacs_prim files (.pacs_prim) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "pacs_prim_export_timeout" | sed -e 's/pacs_prim_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the collision directories
pacs_prim_source_directories=`cat ../../cfg/directories.cfg | grep "pacs_prim_source_directories" | sed -e 's/pacs_prim_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export pacs_prim for pacs_prim >> log.log
echo ------- >> log.log
echo -------
echo --- Export pacs_prim for pacs_prim
echo -------
date >> log.log
date
# For each directoy
for i in $pacs_prim_source_directories ; do
# Copy the script
cat maxscript/pacs_prim_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/pacs_prim/log.log&g" | sed -e "s&pacs_prim_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/pacs_prim/pacs_prim&g" > $max_directory/scripts/pacs_prim_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript pacs_prim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript pacs_prim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript pacs_prim_export.ms -q -mi -vn
# Idle
../../idle.bat
done
rm landscape_col_prim_pacs_list.txt
#!/bin/bash
rm log.log 2> /dev/null
# *** Export pacs_prim files (.pacs_prim) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "pacs_prim_export_timeout" | sed -e 's/pacs_prim_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the collision directories
pacs_prim_source_directories=`cat ../../cfg/directories.cfg | grep "pacs_prim_source_directories" | sed -e 's/pacs_prim_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export pacs_prim for pacs_prim >> log.log
echo ------- >> log.log
echo -------
echo --- Export pacs_prim for pacs_prim
echo -------
date >> log.log
date
# For each directoy
for i in $pacs_prim_source_directories ; do
# Copy the script
cat maxscript/pacs_prim_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/pacs_prim/log.log&g" | sed -e "s&pacs_prim_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/pacs_prim/pacs_prim&g" > $max_directory/scripts/pacs_prim_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript pacs_prim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript pacs_prim_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript pacs_prim_export.ms -q -mi -vn
# Idle
../../idle.bat
done
rm landscape_col_prim_pacs_list.txt

@ -1,30 +1,30 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the zonels in the client data
# Get the zone install directory
pacs_primitive_install_directory=`cat ../../cfg/directories.cfg | grep "pacs_primitive_install_directory" | sed -e 's/pacs_primitive_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Test if there is a need for the prim pacs directory
want_landscape_col_prim_pacs_list=`cat ../../cfg/config.cfg | grep "want_landscape_col_prim_pacs_list"`
# Log error
echo ------- > log.log
echo --- Install zone >> log.log
echo ------- >> log.log
echo -------
echo --- Install zone
echo -------
date >> log.log
date
cp -u -p -R pacs_prim/. $client_directory/$pacs_primitive_install_directory 2>> log.log
if test "$want_landscape_col_prim_pacs_list" ; then
ls pacs_prim | grep ".pacs_prim" >> $client_directory/landscape_col_prim_pacs_list.txt
fi
#!/bin/bash
rm log.log 2> /dev/null
# Install the zonels in the client data
# Get the zone install directory
pacs_primitive_install_directory=`cat ../../cfg/directories.cfg | grep "pacs_primitive_install_directory" | sed -e 's/pacs_primitive_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Test if there is a need for the prim pacs directory
want_landscape_col_prim_pacs_list=`cat ../../cfg/config.cfg | grep "want_landscape_col_prim_pacs_list"`
# Log error
echo ------- > log.log
echo --- Install zone >> log.log
echo ------- >> log.log
echo -------
echo --- Install zone
echo -------
date >> log.log
date
cp -u -p -R pacs_prim/. $client_directory/$pacs_primitive_install_directory 2>> log.log
if test "$want_landscape_col_prim_pacs_list" ; then
ls pacs_prim | grep ".pacs_prim" >> $client_directory/landscape_col_prim_pacs_list.txt
fi

@ -1,31 +1,31 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export particle system file (.ps)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ps directories
ps_source_directories=`cat ../../cfg/directories.cfg | grep "ps_source_directory" | sed -e 's/ps_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export ps >> log.log
echo ------- >> log.log
echo -------
echo --- Export ps
echo -------
date >> log.log
date
# For each ps directory
for i in $ps_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[pP][sS] ps 2>> log.log
cp -u -p $database_directory/$i/*.[sS][hH][aA][pP][eE] ps 2>> log.log
cp -u -p $database_directory/$i/*.[pP][rR][iI][mM][iI][tT][iI][vV][eE] ps 2>> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export particle system file (.ps)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ps directories
ps_source_directories=`cat ../../cfg/directories.cfg | grep "ps_source_directory" | sed -e 's/ps_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export ps >> log.log
echo ------- >> log.log
echo -------
echo --- Export ps
echo -------
date >> log.log
date
# For each ps directory
for i in $ps_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[pP][sS] ps 2>> log.log
cp -u -p $database_directory/$i/*.[sS][hH][aA][pP][eE] ps 2>> log.log
cp -u -p $database_directory/$i/*.[pP][rR][iI][mM][iI][tT][iI][vV][eE] ps 2>> log.log
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the particule system in the client data
# Get the ps install directory
ps_install_directory=`cat ../../cfg/directories.cfg | grep "ps_install_directory" | sed -e 's/ps_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install ps >> log.log
echo ------- >> log.log
echo -------
echo --- Install ps
echo -------
date >> log.log
date
cp -u -p -R ps/. $client_directory/$ps_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the particule system in the client data
# Get the ps install directory
ps_install_directory=`cat ../../cfg/directories.cfg | grep "ps_install_directory" | sed -e 's/ps_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install ps >> log.log
echo ------- >> log.log
echo -------
echo --- Install ps
echo -------
date >> log.log
date
cp -u -p -R ps/. $client_directory/$ps_install_directory 2>> log.log

@ -1,358 +1,358 @@
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
build_rbank='build_rbank.exe'
build_indoor_rbank='build_indoor_rbank.exe'
build_ig_boxes='build_ig_boxes.exe'
ai_build_wmap='ai_build_wmap_r.exe'
get_neighbors='get_neighbors.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
tessel_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_tessel_timeout" | sed -e 's/rbank_build_tessel_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
smooth_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_smooth_timeout" | sed -e 's/rbank_build_smooth_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
proclocal_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_proclocal_timeout" | sed -e 's/rbank_build_proclocal_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
procglobal_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_procglobal_timeout" | sed -e 's/rbank_build_procglobal_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
indoor_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_indoor_timeout" | sed -e 's/rbank_build_indoor_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
build_wmap_timeout=`cat ../../cfg/config.cfg | grep "build_wmap_timeout" | sed -e 's/build_wmap_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# **** Copy ig and shapes
# Log error
echo >> log.log
echo ------- > log.log
echo --- Generate config script >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Generate config script
echo -------
echo
date >> log.log
date
# Get arguments
rbank_bank_name=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
rbank_reduce_surfaces=`cat ../../cfg/config.cfg | grep "rbank_reduce_surfaces" | sed -e 's/rbank_reduce_surfaces//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_smooth_borders=`cat ../../cfg/config.cfg | grep "rbank_smooth_borders" | sed -e 's/rbank_smooth_borders//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_compute_elevation=`cat ../../cfg/config.cfg | grep "rbank_compute_elevation" | sed -e 's/rbank_compute_elevation//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_compute_levels=`cat ../../cfg/config.cfg | grep "rbank_compute_levels" | sed -e 's/rbank_compute_levels//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_link_elements=`cat ../../cfg/config.cfg | grep "rbank_link_elements" | sed -e 's/rbank_link_elements//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_cut_edges=`cat ../../cfg/config.cfg | grep "rbank_cut_edges" | sed -e 's/rbank_cut_edges//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_use_zone_square=`cat ../../cfg/config.cfg | grep "rbank_use_zone_square" | sed -e 's/rbank_use_zone_square//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_zone_ul=`cat ../../cfg/config.cfg | grep "rbank_zone_ul" | sed -e 's/rbank_zone_ul//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_zone_dr=`cat ../../cfg/config.cfg | grep "rbank_zone_dr" | sed -e 's/rbank_zone_dr//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_rbank_name=`cat ../../cfg/config.cfg | grep "rbank_rbank_name" | sed -e 's/rbank_rbank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_ig_pathes=`cat ../../cfg/config.cfg | grep "rbank_ig_path" | sed -e 's/rbank_ig_path//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_shape_pathes=`cat ../../cfg/config.cfg | grep "rbank_shape_path" | sed -e 's/rbank_shape_path//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Global options
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Build the bbox file >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Build the bbox file
echo -------
echo
date >> log.log
date
# ***** Build the bbox file
# Remove the config file
rm build_ig_boxes.cfg
# List ig pathes
echo Pathes = \{ >> build_ig_boxes.cfg
for i in $rbank_ig_pathes ; do
echo \"$i\"\, >> build_ig_boxes.cfg
done
for i in $rbank_shape_pathes ; do
echo \"$i\"\, >> build_ig_boxes.cfg
done
echo \}\; >> build_ig_boxes.cfg
# List igs
echo IGs = \{ >> build_ig_boxes.cfg
for i in $rbank_ig_pathes ; do
cd $i
list_ig=`ls -1 *.[iI][gG]`
cd $build_gamedata_directory"/processes/rbank"
for j in $list_ig ; do
n=`echo $j | sed -e 's/.ig//'`
echo \"$n\"\, >> build_ig_boxes.cfg
done
# Idle
../../idle.bat
done
echo \}\; >> build_ig_boxes.cfg
echo Output = \"bbox/temp.bbox\"\; >> build_ig_boxes.cfg
# -- NOT NEEDED ANYMORE
$build_ig_boxes
# ***** Build the rbank, gr files
# Copy the good template file
if ( test "$quality_flag" )
then
# We are in BEST mode
`cat cfg/template_final.cfg | sed -e "s&rbank_bank_name&$rbank_bank_name&g" | sed -e "s&rbank_reduce_surfaces&$rbank_reduce_surfaces&g" | sed -e "s&rbank_smooth_borders&$rbank_smooth_borders&g" | sed -e "s&rbank_compute_elevation&$rbank_compute_elevation&g" | sed -e "s&rbank_compute_levels&$rbank_compute_levels&g" | sed -e "s&rbank_link_elements&$rbank_link_elements&g" | sed -e "s&rbank_cut_edges&$rbank_cut_edges&g" | sed -e "s&rbank_use_zone_square&$rbank_use_zone_square&g" | sed -e "s&rbank_zone_ul&$rbank_zone_ul&g" | sed -e "s&rbank_zone_dr&$rbank_zone_dr&g" > build_rbank.cfg`
else
# We are in DRAFT mode
`cat cfg/template_draft.cfg | sed -e "s&rbank_bank_name&$rbank_bank_name&g" | sed -e "s&rbank_reduce_surfaces&$rbank_reduce_surfaces&g" | sed -e "s&rbank_smooth_borders&$rbank_smooth_borders&g" | sed -e "s&rbank_compute_elevation&$rbank_compute_elevation&g" | sed -e "s&rbank_compute_levels&$rbank_compute_levels&g" | sed -e "s&rbank_link_elements&$rbank_link_elements&g" | sed -e "s&rbank_cut_edges&$rbank_cut_edges&g" | sed -e "s&rbank_use_zone_square&$rbank_use_zone_square&g" | sed -e "s&rbank_zone_ul&$rbank_zone_ul&g" | sed -e "s&rbank_zone_dr&$rbank_zone_dr&g" > build_rbank.cfg`
fi
# List the zones to add
cd ../zone/zone_welded
list_zone=`ls -1 *.[zZ][oO][nN][eE][wW]`
cd ../../rbank
# Make a zone list
for i in $list_zone ; do
echo \"$i\", >> build_rbank.cfg
done
# Close the file
echo "};" >> build_rbank.cfg
echo " " >> build_rbank.cfg
# List ig pathes
echo Pathes = \{ >> build_rbank.cfg
for i in $rbank_ig_pathes ; do
echo \"$i\"\, >> build_rbank.cfg
done
for i in $rbank_shape_pathes ; do
echo \"$i\"\, >> build_rbank.cfg
done
echo \}\; >> build_rbank.cfg
echo " " >> build_rbank.cfg
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Check pacs primitives consistency >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Check pacs primitives consistency
echo -------
echo
date >> log.log
date
# ******* PASS 1 Generate smooth lr
# For each ../zone/zone_welded/*.[zZ][oO][nN][eE][wW] files, checks if the associated scratch/tesselation/*.[tT][eE][sS][sS][eE][lL] file
# are up to date with the .zonew and the 8 neighbor .zonew file. If note, tesselate it.
$exec_timeout $tessel_timeout $build_rbank -C -p -g
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Generate lr >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Generate lr
echo -------
echo
date >> log.log
date
for i in $list_zone ; do
# Get destination file
zone=`echo $i | sed -e 's/.zonew//'`
# Lr final
lr1=`echo "smooth/"$zone".lr"`
# Get the 9 zones list
near_zone=`$get_neighbors $zone`
# Zone to build
zone_to_build=`echo ""`
# For each zone near
if ( ! test -e $lr1 )
then
zone_to_build=`echo "../zone/zone_welded/"$i`
else
for j in $near_zone ; do
if ( test "../zone/zone_welded/"$j.zonew -nt $lr1 )
then
zone_to_build=`echo "../zone/zone_welded/"$i`
fi
done
fi
# Build it only if the file exist
if ( test "$zone_to_build" )
then
# Build lr
$exec_timeout $tessel_timeout $build_rbank -c -P -g $i
echo
echo >> log.log
else
echo SKIPPED $dest
echo
echo SKIPPED $lr1 >> log.log
echo >> log.log
fi
# Idle
../../idle.bat
done
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Procglobal >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Procglobal
echo -------
echo
date >> log.log
date
# Procglobal
$exec_timeout $procglobal_timeout $build_rbank -c -p -G
# ***** Build the cfg for interiors
rm build_indoor_rbank.cfg
echo MeshPath = \"cmb/\"\; >> build_indoor_rbank.cfg
echo Meshes = { >> build_indoor_rbank.cfg
# List the cmb to merge
cd cmb
list_cmb=`ls -1 *.[cC][mM][bB]`
cd ..
for i in $list_cmb ; do
n=`echo $i | sed -e 's/.cmb//'`
echo \"$n\", >> build_indoor_rbank.cfg
# Idle
../../idle.bat
done
echo "};" >> build_indoor_rbank.cfg
echo OutputPath = \""retrievers/"\"\; >> build_indoor_rbank.cfg
echo OutputPrefix = "unused"\; >> build_indoor_rbank.cfg
echo Merge = 1\; >> build_indoor_rbank.cfg
echo MergePath = \""smooth/"\"\; >> build_indoor_rbank.cfg
echo MergeInputPrefix = \"temp\"\; >> build_indoor_rbank.cfg
echo MergeOutputPrefix = \"tempMerged\"\; >> build_indoor_rbank.cfg
echo AddToRetriever = \"1\"\; >> build_indoor_rbank.cfg
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Merge cmb in rbank >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Merge cmb in rbank
echo -------
echo
date >> log.log
date
$exec_timeout $indoor_timeout $build_indoor_rbank
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Copy gr, rbank and lr >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Copy gr, rbank and lr
echo -------
echo
date >> log.log
date
# Copy the files
mv "retrievers"/tempMerged.rbank output/$rbank_rbank_name".rbank" 2>> log.log
mv "retrievers"/tempMerged.gr output/$rbank_rbank_name".gr" 2>> log.log
for i in "retrievers"/tempMerged_*.lr ; do
finalname=`echo $i | sed -e "s/tempMerged/$rbank_rbank_name/" | sed -e 's/retrievers/output/'`
mv $i $finalname
done
#
# removed from pacs process, ai_build_wmap is built later, independently
#
# Check ai_build_wmap exist
#if ( test -f $ai_build_wmap )
#then
# # setup config file for ai_build_wmap
# rm ./ai_build_wmap.cfg
# cp cfg/ai_build_wmap.cfg ./ai_build_wmap.cfg
#
# # generate wmap
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsCrunch $rbank_rbank_name"
#
# # generate sizes
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildGabarit $rbank_rbank_name"
#
# # generate cwmaps for each size
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildWmap ${rbank_rbank_name}_0"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildWmap ${rbank_rbank_name}_1"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildWmap ${rbank_rbank_name}_2"
#
# # generate bitmap for each size
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildBitmap ${rbank_rbank_name}_0"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildBitmap ${rbank_rbank_name}_1"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildBitmap ${rbank_rbank_name}_2"
#
# # clear height maps for size 1 and 2
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsClearHeightmap ${rbank_rbank_name}_1"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsClearHeightmap ${rbank_rbank_name}_2"
#
# rm output/$rbank_rbank_name.wmap
# rm output/${rbank_rbank_name}_0.wmap
# rm output/${rbank_rbank_name}_1.wmap
# rm output/${rbank_rbank_name}_2.wmap
#fi
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
build_rbank='build_rbank.exe'
build_indoor_rbank='build_indoor_rbank.exe'
build_ig_boxes='build_ig_boxes.exe'
ai_build_wmap='ai_build_wmap_r.exe'
get_neighbors='get_neighbors.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
tessel_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_tessel_timeout" | sed -e 's/rbank_build_tessel_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
smooth_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_smooth_timeout" | sed -e 's/rbank_build_smooth_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
proclocal_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_proclocal_timeout" | sed -e 's/rbank_build_proclocal_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
procglobal_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_procglobal_timeout" | sed -e 's/rbank_build_procglobal_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
indoor_timeout=`cat ../../cfg/config.cfg | grep "rbank_build_indoor_timeout" | sed -e 's/rbank_build_indoor_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
build_wmap_timeout=`cat ../../cfg/config.cfg | grep "build_wmap_timeout" | sed -e 's/build_wmap_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# **** Copy ig and shapes
# Log error
echo >> log.log
echo ------- > log.log
echo --- Generate config script >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Generate config script
echo -------
echo
date >> log.log
date
# Get arguments
rbank_bank_name=`cat ../../cfg/properties.cfg | grep "bank_name" | sed -e 's/bank_name//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/"//g' | sed -e 's/;//g'`
rbank_reduce_surfaces=`cat ../../cfg/config.cfg | grep "rbank_reduce_surfaces" | sed -e 's/rbank_reduce_surfaces//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_smooth_borders=`cat ../../cfg/config.cfg | grep "rbank_smooth_borders" | sed -e 's/rbank_smooth_borders//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_compute_elevation=`cat ../../cfg/config.cfg | grep "rbank_compute_elevation" | sed -e 's/rbank_compute_elevation//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_compute_levels=`cat ../../cfg/config.cfg | grep "rbank_compute_levels" | sed -e 's/rbank_compute_levels//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_link_elements=`cat ../../cfg/config.cfg | grep "rbank_link_elements" | sed -e 's/rbank_link_elements//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_cut_edges=`cat ../../cfg/config.cfg | grep "rbank_cut_edges" | sed -e 's/rbank_cut_edges//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_use_zone_square=`cat ../../cfg/config.cfg | grep "rbank_use_zone_square" | sed -e 's/rbank_use_zone_square//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_zone_ul=`cat ../../cfg/config.cfg | grep "rbank_zone_ul" | sed -e 's/rbank_zone_ul//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_zone_dr=`cat ../../cfg/config.cfg | grep "rbank_zone_dr" | sed -e 's/rbank_zone_dr//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_rbank_name=`cat ../../cfg/config.cfg | grep "rbank_rbank_name" | sed -e 's/rbank_rbank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_ig_pathes=`cat ../../cfg/config.cfg | grep "rbank_ig_path" | sed -e 's/rbank_ig_path//' | sed -e 's/ //g' | sed -e 's/=//g'`
rbank_shape_pathes=`cat ../../cfg/config.cfg | grep "rbank_shape_path" | sed -e 's/rbank_shape_path//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Global options
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Build the bbox file >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Build the bbox file
echo -------
echo
date >> log.log
date
# ***** Build the bbox file
# Remove the config file
rm build_ig_boxes.cfg
# List ig pathes
echo Pathes = \{ >> build_ig_boxes.cfg
for i in $rbank_ig_pathes ; do
echo \"$i\"\, >> build_ig_boxes.cfg
done
for i in $rbank_shape_pathes ; do
echo \"$i\"\, >> build_ig_boxes.cfg
done
echo \}\; >> build_ig_boxes.cfg
# List igs
echo IGs = \{ >> build_ig_boxes.cfg
for i in $rbank_ig_pathes ; do
cd $i
list_ig=`ls -1 *.[iI][gG]`
cd $build_gamedata_directory"/processes/rbank"
for j in $list_ig ; do
n=`echo $j | sed -e 's/.ig//'`
echo \"$n\"\, >> build_ig_boxes.cfg
done
# Idle
../../idle.bat
done
echo \}\; >> build_ig_boxes.cfg
echo Output = \"bbox/temp.bbox\"\; >> build_ig_boxes.cfg
# -- NOT NEEDED ANYMORE
$build_ig_boxes
# ***** Build the rbank, gr files
# Copy the good template file
if ( test "$quality_flag" )
then
# We are in BEST mode
`cat cfg/template_final.cfg | sed -e "s&rbank_bank_name&$rbank_bank_name&g" | sed -e "s&rbank_reduce_surfaces&$rbank_reduce_surfaces&g" | sed -e "s&rbank_smooth_borders&$rbank_smooth_borders&g" | sed -e "s&rbank_compute_elevation&$rbank_compute_elevation&g" | sed -e "s&rbank_compute_levels&$rbank_compute_levels&g" | sed -e "s&rbank_link_elements&$rbank_link_elements&g" | sed -e "s&rbank_cut_edges&$rbank_cut_edges&g" | sed -e "s&rbank_use_zone_square&$rbank_use_zone_square&g" | sed -e "s&rbank_zone_ul&$rbank_zone_ul&g" | sed -e "s&rbank_zone_dr&$rbank_zone_dr&g" > build_rbank.cfg`
else
# We are in DRAFT mode
`cat cfg/template_draft.cfg | sed -e "s&rbank_bank_name&$rbank_bank_name&g" | sed -e "s&rbank_reduce_surfaces&$rbank_reduce_surfaces&g" | sed -e "s&rbank_smooth_borders&$rbank_smooth_borders&g" | sed -e "s&rbank_compute_elevation&$rbank_compute_elevation&g" | sed -e "s&rbank_compute_levels&$rbank_compute_levels&g" | sed -e "s&rbank_link_elements&$rbank_link_elements&g" | sed -e "s&rbank_cut_edges&$rbank_cut_edges&g" | sed -e "s&rbank_use_zone_square&$rbank_use_zone_square&g" | sed -e "s&rbank_zone_ul&$rbank_zone_ul&g" | sed -e "s&rbank_zone_dr&$rbank_zone_dr&g" > build_rbank.cfg`
fi
# List the zones to add
cd ../zone/zone_welded
list_zone=`ls -1 *.[zZ][oO][nN][eE][wW]`
cd ../../rbank
# Make a zone list
for i in $list_zone ; do
echo \"$i\", >> build_rbank.cfg
done
# Close the file
echo "};" >> build_rbank.cfg
echo " " >> build_rbank.cfg
# List ig pathes
echo Pathes = \{ >> build_rbank.cfg
for i in $rbank_ig_pathes ; do
echo \"$i\"\, >> build_rbank.cfg
done
for i in $rbank_shape_pathes ; do
echo \"$i\"\, >> build_rbank.cfg
done
echo \}\; >> build_rbank.cfg
echo " " >> build_rbank.cfg
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Check pacs primitives consistency >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Check pacs primitives consistency
echo -------
echo
date >> log.log
date
# ******* PASS 1 Generate smooth lr
# For each ../zone/zone_welded/*.[zZ][oO][nN][eE][wW] files, checks if the associated scratch/tesselation/*.[tT][eE][sS][sS][eE][lL] file
# are up to date with the .zonew and the 8 neighbor .zonew file. If note, tesselate it.
$exec_timeout $tessel_timeout $build_rbank -C -p -g
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Generate lr >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Generate lr
echo -------
echo
date >> log.log
date
for i in $list_zone ; do
# Get destination file
zone=`echo $i | sed -e 's/.zonew//'`
# Lr final
lr1=`echo "smooth/"$zone".lr"`
# Get the 9 zones list
near_zone=`$get_neighbors $zone`
# Zone to build
zone_to_build=`echo ""`
# For each zone near
if ( ! test -e $lr1 )
then
zone_to_build=`echo "../zone/zone_welded/"$i`
else
for j in $near_zone ; do
if ( test "../zone/zone_welded/"$j.zonew -nt $lr1 )
then
zone_to_build=`echo "../zone/zone_welded/"$i`
fi
done
fi
# Build it only if the file exist
if ( test "$zone_to_build" )
then
# Build lr
$exec_timeout $tessel_timeout $build_rbank -c -P -g $i
echo
echo >> log.log
else
echo SKIPPED $dest
echo
echo SKIPPED $lr1 >> log.log
echo >> log.log
fi
# Idle
../../idle.bat
done
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Procglobal >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Procglobal
echo -------
echo
date >> log.log
date
# Procglobal
$exec_timeout $procglobal_timeout $build_rbank -c -p -G
# ***** Build the cfg for interiors
rm build_indoor_rbank.cfg
echo MeshPath = \"cmb/\"\; >> build_indoor_rbank.cfg
echo Meshes = { >> build_indoor_rbank.cfg
# List the cmb to merge
cd cmb
list_cmb=`ls -1 *.[cC][mM][bB]`
cd ..
for i in $list_cmb ; do
n=`echo $i | sed -e 's/.cmb//'`
echo \"$n\", >> build_indoor_rbank.cfg
# Idle
../../idle.bat
done
echo "};" >> build_indoor_rbank.cfg
echo OutputPath = \""retrievers/"\"\; >> build_indoor_rbank.cfg
echo OutputPrefix = "unused"\; >> build_indoor_rbank.cfg
echo Merge = 1\; >> build_indoor_rbank.cfg
echo MergePath = \""smooth/"\"\; >> build_indoor_rbank.cfg
echo MergeInputPrefix = \"temp\"\; >> build_indoor_rbank.cfg
echo MergeOutputPrefix = \"tempMerged\"\; >> build_indoor_rbank.cfg
echo AddToRetriever = \"1\"\; >> build_indoor_rbank.cfg
# Log error
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Merge cmb in rbank >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Merge cmb in rbank
echo -------
echo
date >> log.log
date
$exec_timeout $indoor_timeout $build_indoor_rbank
echo >> log.log
echo ------- >> log.log
echo --- Build RBank : Copy gr, rbank and lr >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Build RBank : Copy gr, rbank and lr
echo -------
echo
date >> log.log
date
# Copy the files
mv "retrievers"/tempMerged.rbank output/$rbank_rbank_name".rbank" 2>> log.log
mv "retrievers"/tempMerged.gr output/$rbank_rbank_name".gr" 2>> log.log
for i in "retrievers"/tempMerged_*.lr ; do
finalname=`echo $i | sed -e "s/tempMerged/$rbank_rbank_name/" | sed -e 's/retrievers/output/'`
mv $i $finalname
done
#
# removed from pacs process, ai_build_wmap is built later, independently
#
# Check ai_build_wmap exist
#if ( test -f $ai_build_wmap )
#then
# # setup config file for ai_build_wmap
# rm ./ai_build_wmap.cfg
# cp cfg/ai_build_wmap.cfg ./ai_build_wmap.cfg
#
# # generate wmap
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsCrunch $rbank_rbank_name"
#
# # generate sizes
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildGabarit $rbank_rbank_name"
#
# # generate cwmaps for each size
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildWmap ${rbank_rbank_name}_0"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildWmap ${rbank_rbank_name}_1"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildWmap ${rbank_rbank_name}_2"
#
# # generate bitmap for each size
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildBitmap ${rbank_rbank_name}_0"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildBitmap ${rbank_rbank_name}_1"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsBuildBitmap ${rbank_rbank_name}_2"
#
# # clear height maps for size 1 and 2
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsClearHeightmap ${rbank_rbank_name}_1"
# $exec_timeout $build_wmap_timeout $ai_build_wmap "pacsClearHeightmap ${rbank_rbank_name}_2"
#
# rm output/$rbank_rbank_name.wmap
# rm output/${rbank_rbank_name}_0.wmap
# rm output/${rbank_rbank_name}_1.wmap
# rm output/${rbank_rbank_name}_2.wmap
#fi

@ -1,31 +1,31 @@
#!/bin/bash
rm log.log 2> /dev/null
# Log error
echo >> log.log
echo ------- > log.log
echo --- Clean rbank >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Clean rbank
echo -------
echo
date >> log.log
date
# Get arguments
rbank_rbank_name=`cat ../../cfg/config.cfg | grep "rbank_rbank_name" | sed -e 's/rbank_rbank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Delete temp files
rm tesselation/*.[tT][eE][sS][sS][eE][lL]
rm smooth/*.[lL][rR]
rm smooth/*.[oO][cC][hH][aA][iI][nN]
rm smooth/*.[gG][rR]
rm smooth/*.[rR][bB][aA][nN][kK]
rm smooth/preproc/*.[lL][rR]
rm retrievers/*.[gG][rR]
rm retrievers/*.[rR][bB][aA][nN][kK]
#!/bin/bash
rm log.log 2> /dev/null
# Log error
echo >> log.log
echo ------- > log.log
echo --- Clean rbank >> log.log
echo ------- >> log.log
echo >> log.log
echo
echo -------
echo --- Clean rbank
echo -------
echo
date >> log.log
date
# Get arguments
rbank_rbank_name=`cat ../../cfg/config.cfg | grep "rbank_rbank_name" | sed -e 's/rbank_rbank_name//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Delete temp files
rm tesselation/*.[tT][eE][sS][sS][eE][lL]
rm smooth/*.[lL][rR]
rm smooth/*.[oO][cC][hH][aA][iI][nN]
rm smooth/*.[gG][rR]
rm smooth/*.[rR][bB][aA][nN][kK]
rm smooth/preproc/*.[lL][rR]
rm retrievers/*.[gG][rR]
rm retrievers/*.[rR][bB][aA][nN][kK]

@ -1,57 +1,57 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export cmb files (.cmb) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "cmb_export_timeout" | sed -e 's/cmb_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the collision directories
collision_source_directories=`cat ../../cfg/directories.cfg | grep "cmb_source_directory" | sed -e 's/cmb_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export cmb for rbank >> log.log
echo ------- >> log.log
echo -------
echo --- Export cmb for rbank
echo -------
date >> log.log
date
# For each directoy
for i in $collision_source_directories ; do
# Copy the script
cat maxscript/rbank_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/rbank/log.log&g" | sed -e "s&collision_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_rbank&$build_gamedata_directory/processes/rbank/cmb&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/rbank/tag&g" > $max_directory/scripts/rbank_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript rbank_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript rbank_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript rbank_export.ms -q -mi -vn
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export cmb files (.cmb) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "cmb_export_timeout" | sed -e 's/cmb_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the collision directories
collision_source_directories=`cat ../../cfg/directories.cfg | grep "cmb_source_directory" | sed -e 's/cmb_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export cmb for rbank >> log.log
echo ------- >> log.log
echo -------
echo --- Export cmb for rbank
echo -------
date >> log.log
date
# For each directoy
for i in $collision_source_directories ; do
# Copy the script
cat maxscript/rbank_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/rbank/log.log&g" | sed -e "s&collision_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_rbank&$build_gamedata_directory/processes/rbank/cmb&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/rbank/tag&g" > $max_directory/scripts/rbank_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript rbank_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript rbank_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript rbank_export.ms -q -mi -vn
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the zonels in the client data
# Get the zone install directory
pacs_install_directory=`cat ../../cfg/directories.cfg | grep "pacs_install_directory" | sed -e 's/pacs_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install zone >> log.log
echo ------- >> log.log
echo -------
echo --- Install zone
echo -------
date >> log.log
date
cp -u -p -R output/. $client_directory/$pacs_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the zonels in the client data
# Get the zone install directory
pacs_install_directory=`cat ../../cfg/directories.cfg | grep "pacs_install_directory" | sed -e 's/pacs_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install zone >> log.log
echo ------- >> log.log
echo -------
echo --- Install zone
echo -------
date >> log.log
date
cp -u -p -R output/. $client_directory/$pacs_install_directory 2>> log.log

@ -1,236 +1,236 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Build shape files (.shape)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Bin
tga_2_dds='tga2dds.exe'
build_coarse_mesh='build_coarse_mesh.exe'
lightmap_optimizer='lightmap_optimizer.exe'
build_clodtex='build_clodtex.exe'
build_shadow_skin='build_shadow_skin.exe'
# Log error
echo ------- > log.log
echo --- Build ShadowSkin shape >> log.log
echo ------- >> log.log
echo -------
echo --- Build ShadowSkin shape
echo -------
date >> log.log
date
# build shadow skin?
do_build_shadow_skin=`cat ../../cfg/config.cfg | grep -w "build_shadow_skin" | sed -e 's/build_shadow_skin//' | sed -e 's/ //g' | sed -e 's/=//g'`
build_shadow_skin_ratio=`cat ../../cfg/config.cfg | grep "build_shadow_skin_ratio" | sed -e 's/build_shadow_skin_ratio//' | sed -e 's/ //g' | sed -e 's/=//g'`
build_shadow_skin_maxface=`cat ../../cfg/config.cfg | grep "build_shadow_skin_maxface" | sed -e 's/build_shadow_skin_maxface//' | sed -e 's/ //g' | sed -e 's/=//g'`
# if config wanted then must compute shadowSkin
if ( test "$do_build_shadow_skin" = "1" )
then
for i in shape_not_optimized/*.[sS][hH][aA][pP][eE] ; do
if ( test -f $i )
then
dest=`echo $i | sed -e 's/shape_not_optimized/shape/g'`
# if date is newer in shape_not_optimized than in shape, compute
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# NB: overwrite shape_not_optimized, because will be cloded/copied below to shapes/
$build_shadow_skin $i $i $build_shadow_skin_ratio $build_shadow_skin_maxface
fi
fi
done
fi
# Log error
echo ------- >> log.log
echo --- Build shape : Copy Shape / build CLodTex >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : Copy Shape / build CLodTex
echo -------
date >> log.log
date
# Get the lod config file in the database
clod_config_file=`cat ../../cfg/config.cfg | grep "clod_config_file" | sed -e 's/clod_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
# if clod cfg is setup, build clod
if (test -f $database_directory/$clod_config_file)
then
# build the shape with clod texture. convert from 'shape_not_optimized' to 'shape'
$build_clodtex -d $database_directory/$clod_config_file clod shape_not_optimized shape
else
# just copy shape_not_optimized to shape
./sh/transfert_shape_optimize.bat
fi
# Log error
echo ------- >> log.log
echo --- Build shape : optimize lightmaps >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : optimize lightmaps
echo -------
date >> log.log
date
# copy lightmap_not_optimized to lightmap
./sh/transfert_lightmap_optimize.bat
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# Optimize lightmaps if any. Additionnaly, output a file indicating which lightmaps are 8 bits
$lightmap_optimizer ./lightmap ./shape ./tag ./list_lm_8bit.txt
# Convert lightmap in 16 bits mode if they are not 8 bits lightmap
echo ------- >> log.log
echo --- Build shape : convert lightmaps in 16 or 8 bits >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : convert lightmaps in 16 or 8 bits
echo -------
date >> log.log
date
for i in lightmap/*.[tT][gG][aA] ; do
if ( test -f $i )
then
# Destination file
dest=`echo $i | sed -e 's/lightmap/lightmap_16_bits/g'`
# Convert the lightmap in 16 bits mode
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
fileTest=`echo $i | sed -e 's&lightmap/&&g'`
file8Bit=`cat ./list_lm_8bit.txt | grep "$fileTest"`
if ( test "$file8Bit" = "$fileTest" )
then
echo "export $fileTest in 8bit format"
$tga_2_dds $i -o $dest -a tga8 2>> log.log
else
echo "export $fileTest in 16bit format"
$tga_2_dds $i -o $dest -a tga16 2>> log.log
fi
fi
fi
# Idle
../../idle.bat
done
# Log error
echo ------- >> log.log
echo --- Build shape : build coarse meshes >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : build coarse meshes
echo -------
date >> log.log
date
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get texture pathes
map_source_directories=`cat ../../cfg/directories.cfg | grep "map_source_directory" | sed -e 's/map_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the texture mul size
texture_mul_size_value=`cat ../../cfg/config.cfg | grep "texture_mul_size_value" | sed -e 's/texture_mul_size_value//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the coarse mesh texture name
coarse_mesh_texture_names=`cat ../../cfg/config.cfg | grep "coarse_mesh_texture_names" | sed -e 's/coarse_mesh_texture_names//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Copy the config file header
cat cfg/config_header.cfg | sed -e "s/texture_mul_size_value/$texture_mul_size_value/g" > cfg/config_generated.cfg
# Corse meshes for this process ?
if ( test "$coarse_mesh_texture_names" ) then
# Add the shape directory
echo ' "'shape_with_coarse_mesh'"', >> cfg/config_generated.cfg
# For each texture path
for i in $map_source_directories ; do
# Add the path
echo ' "'$database_directory/$i'"', >> cfg/config_generated.cfg
# Idle
../../idle.bat
done
# Add the shape list header
echo '};' >> cfg/config_generated.cfg
echo ' ' >> cfg/config_generated.cfg
echo 'list_mesh =' >> cfg/config_generated.cfg
echo '{' >> cfg/config_generated.cfg
# For each shape with coarse mesh
for i in shape_with_coarse_mesh/*.[sS][hH][aA][pP][eE]; do
if ( test -f $i )
then
# Destination file
src=`echo $i | sed -e 's&shape_with_coarse_mesh/&&g'`
dest=`echo $i | sed -e 's&shape_with_coarse_mesh&shape_with_coarse_mesh_builded&g'`
# Add the shape
echo ' "'$src'", "'$dest'",' >> cfg/config_generated.cfg
# Destination file
dest=`echo $i | sed -e 's/lightmap/lightmap_16_bits/g'`
fi
# Idle
../../idle.bat
done
echo '};' >> cfg/config_generated.cfg
# Add output bitmap list
echo ' ' >> cfg/config_generated.cfg
echo 'output_textures = {' >> cfg/config_generated.cfg
# For each shape with coarse mesh
for i in $coarse_mesh_texture_names ; do
# Add the path
echo ' "shape_with_coarse_mesh/'$i'.tga"', >> cfg/config_generated.cfg
done
# Close the config file
echo '};' >> cfg/config_generated.cfg
# Execute the build
$build_coarse_mesh cfg/config_generated.cfg
# Log error
echo ------- >> log.log
echo --- Build shape : convert coarse texture to dds without mipmaps >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : convert coarse texture to dds without mipmaps
echo -------
date >> log.log
date
# Convert the coarse texture to dds
for i in $coarse_mesh_texture_names ; do
if ( test -f shape_with_coarse_mesh/$i.tga )
then
$tga_2_dds shape_with_coarse_mesh/$i.tga -o shape_with_coarse_mesh_builded/$i.dds -a 5 2>> log.log
fi
done
else
echo --- No coarse meshes texture defined >> log.log
echo --- No coarse meshes texture defined
fi
#!/bin/bash
rm log.log 2> /dev/null
# *** Build shape files (.shape)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Bin
tga_2_dds='tga2dds.exe'
build_coarse_mesh='build_coarse_mesh.exe'
lightmap_optimizer='lightmap_optimizer.exe'
build_clodtex='build_clodtex.exe'
build_shadow_skin='build_shadow_skin.exe'
# Log error
echo ------- > log.log
echo --- Build ShadowSkin shape >> log.log
echo ------- >> log.log
echo -------
echo --- Build ShadowSkin shape
echo -------
date >> log.log
date
# build shadow skin?
do_build_shadow_skin=`cat ../../cfg/config.cfg | grep -w "build_shadow_skin" | sed -e 's/build_shadow_skin//' | sed -e 's/ //g' | sed -e 's/=//g'`
build_shadow_skin_ratio=`cat ../../cfg/config.cfg | grep "build_shadow_skin_ratio" | sed -e 's/build_shadow_skin_ratio//' | sed -e 's/ //g' | sed -e 's/=//g'`
build_shadow_skin_maxface=`cat ../../cfg/config.cfg | grep "build_shadow_skin_maxface" | sed -e 's/build_shadow_skin_maxface//' | sed -e 's/ //g' | sed -e 's/=//g'`
# if config wanted then must compute shadowSkin
if ( test "$do_build_shadow_skin" = "1" )
then
for i in shape_not_optimized/*.[sS][hH][aA][pP][eE] ; do
if ( test -f $i )
then
dest=`echo $i | sed -e 's/shape_not_optimized/shape/g'`
# if date is newer in shape_not_optimized than in shape, compute
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
# NB: overwrite shape_not_optimized, because will be cloded/copied below to shapes/
$build_shadow_skin $i $i $build_shadow_skin_ratio $build_shadow_skin_maxface
fi
fi
done
fi
# Log error
echo ------- >> log.log
echo --- Build shape : Copy Shape / build CLodTex >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : Copy Shape / build CLodTex
echo -------
date >> log.log
date
# Get the lod config file in the database
clod_config_file=`cat ../../cfg/config.cfg | grep "clod_config_file" | sed -e 's/clod_config_file//' | sed -e 's/ //g' | sed -e 's/=//g'`
# if clod cfg is setup, build clod
if (test -f $database_directory/$clod_config_file)
then
# build the shape with clod texture. convert from 'shape_not_optimized' to 'shape'
$build_clodtex -d $database_directory/$clod_config_file clod shape_not_optimized shape
else
# just copy shape_not_optimized to shape
./sh/transfert_shape_optimize.bat
fi
# Log error
echo ------- >> log.log
echo --- Build shape : optimize lightmaps >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : optimize lightmaps
echo -------
date >> log.log
date
# copy lightmap_not_optimized to lightmap
./sh/transfert_lightmap_optimize.bat
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# Optimize lightmaps if any. Additionnaly, output a file indicating which lightmaps are 8 bits
$lightmap_optimizer ./lightmap ./shape ./tag ./list_lm_8bit.txt
# Convert lightmap in 16 bits mode if they are not 8 bits lightmap
echo ------- >> log.log
echo --- Build shape : convert lightmaps in 16 or 8 bits >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : convert lightmaps in 16 or 8 bits
echo -------
date >> log.log
date
for i in lightmap/*.[tT][gG][aA] ; do
if ( test -f $i )
then
# Destination file
dest=`echo $i | sed -e 's/lightmap/lightmap_16_bits/g'`
# Convert the lightmap in 16 bits mode
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
fileTest=`echo $i | sed -e 's&lightmap/&&g'`
file8Bit=`cat ./list_lm_8bit.txt | grep "$fileTest"`
if ( test "$file8Bit" = "$fileTest" )
then
echo "export $fileTest in 8bit format"
$tga_2_dds $i -o $dest -a tga8 2>> log.log
else
echo "export $fileTest in 16bit format"
$tga_2_dds $i -o $dest -a tga16 2>> log.log
fi
fi
fi
# Idle
../../idle.bat
done
# Log error
echo ------- >> log.log
echo --- Build shape : build coarse meshes >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : build coarse meshes
echo -------
date >> log.log
date
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get texture pathes
map_source_directories=`cat ../../cfg/directories.cfg | grep "map_source_directory" | sed -e 's/map_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the texture mul size
texture_mul_size_value=`cat ../../cfg/config.cfg | grep "texture_mul_size_value" | sed -e 's/texture_mul_size_value//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the coarse mesh texture name
coarse_mesh_texture_names=`cat ../../cfg/config.cfg | grep "coarse_mesh_texture_names" | sed -e 's/coarse_mesh_texture_names//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Copy the config file header
cat cfg/config_header.cfg | sed -e "s/texture_mul_size_value/$texture_mul_size_value/g" > cfg/config_generated.cfg
# Corse meshes for this process ?
if ( test "$coarse_mesh_texture_names" ) then
# Add the shape directory
echo ' "'shape_with_coarse_mesh'"', >> cfg/config_generated.cfg
# For each texture path
for i in $map_source_directories ; do
# Add the path
echo ' "'$database_directory/$i'"', >> cfg/config_generated.cfg
# Idle
../../idle.bat
done
# Add the shape list header
echo '};' >> cfg/config_generated.cfg
echo ' ' >> cfg/config_generated.cfg
echo 'list_mesh =' >> cfg/config_generated.cfg
echo '{' >> cfg/config_generated.cfg
# For each shape with coarse mesh
for i in shape_with_coarse_mesh/*.[sS][hH][aA][pP][eE]; do
if ( test -f $i )
then
# Destination file
src=`echo $i | sed -e 's&shape_with_coarse_mesh/&&g'`
dest=`echo $i | sed -e 's&shape_with_coarse_mesh&shape_with_coarse_mesh_builded&g'`
# Add the shape
echo ' "'$src'", "'$dest'",' >> cfg/config_generated.cfg
# Destination file
dest=`echo $i | sed -e 's/lightmap/lightmap_16_bits/g'`
fi
# Idle
../../idle.bat
done
echo '};' >> cfg/config_generated.cfg
# Add output bitmap list
echo ' ' >> cfg/config_generated.cfg
echo 'output_textures = {' >> cfg/config_generated.cfg
# For each shape with coarse mesh
for i in $coarse_mesh_texture_names ; do
# Add the path
echo ' "shape_with_coarse_mesh/'$i'.tga"', >> cfg/config_generated.cfg
done
# Close the config file
echo '};' >> cfg/config_generated.cfg
# Execute the build
$build_coarse_mesh cfg/config_generated.cfg
# Log error
echo ------- >> log.log
echo --- Build shape : convert coarse texture to dds without mipmaps >> log.log
echo ------- >> log.log
echo -------
echo --- Build shape : convert coarse texture to dds without mipmaps
echo -------
date >> log.log
date
# Convert the coarse texture to dds
for i in $coarse_mesh_texture_names ; do
if ( test -f shape_with_coarse_mesh/$i.tga )
then
$tga_2_dds shape_with_coarse_mesh/$i.tga -o shape_with_coarse_mesh_builded/$i.dds -a 5 2>> log.log
fi
done
else
echo --- No coarse meshes texture defined >> log.log
echo --- No coarse meshes texture defined
fi

@ -1,140 +1,140 @@
#!/bin/bash
rm log.log 2> /dev/null
# *********************************************
# *********************************************
# *** Export shape files (.shape) from Max
# *********************************************
# *********************************************
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "shape_export_timeout" | sed -e 's/shape_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the shape directories
shape_source_directories=`cat ../../cfg/directories.cfg | grep "shape_source_directory" | sed -e 's/shape_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Get the options
if ( test "$quality_flag" )
then
# We are in BEST mode
seoel=`cat ../../cfg/config.cfg | grep "shape_export_opt_export_lighting" | sed -e 's/shape_export_opt_export_lighting//' | sed -e 's/ //g' | sed -e 's/=//g'`
seos=`cat ../../cfg/config.cfg | grep "shape_export_opt_shadow" | sed -e 's/shape_export_opt_shadow//' | sed -e 's/ //g' | sed -e 's/=//g'`
seoll=`cat ../../cfg/config.cfg | grep "shape_export_opt_lighting_limit" | sed -e 's/shape_export_opt_lighting_limit//' | sed -e 's/ //g' | sed -e 's/=//g'`
seols=`cat ../../cfg/config.cfg | grep "shape_export_opt_lumel_size" | sed -e 's/shape_export_opt_lumel_size//' | sed -e 's/ //g' | sed -e 's/=//g'`
seoo=`cat ../../cfg/config.cfg | grep "shape_export_opt_oversampling" | sed -e 's/shape_export_opt_oversampling//' | sed -e 's/ //g' | sed -e 's/=//g'`
else
# We are in DRAFT mode
seoel='false'
seos='false'
seoll='0'
seols='0.25'
seoo='1'
fi
seolog=`cat ../../cfg/config.cfg | grep "shape_export_opt_lightmap_log" | sed -e 's/shape_export_opt_lightmap_log//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export shape >> log.log
echo ------- >> log.log
echo -------
echo --- Export shape
echo -------
date >> log.log
date
# For each directoy
for i in $shape_source_directories ; do
# Copy the script
cat maxscript/shape_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/shape/log.log&g" | sed -e "s&shape_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/shape/tag&g" | sed -e "s&output_directory_without_coarse_mesh&$build_gamedata_directory/processes/shape/shape_not_optimized&g" | sed -e "s&output_directory_with_coarse_mesh&$build_gamedata_directory/processes/shape/shape_with_coarse_mesh&g" | sed -e "s&shape_export_opt_export_lighting&$seoel&g" | sed -e "s&shape_export_opt_shadow&$seos&g" | sed -e "s&shape_export_opt_lighting_limit&$seoll&g" | sed -e "s&shape_export_opt_lumel_size&$seols&g" | sed -e "s&shape_export_opt_oversampling&$seoo&g"| sed -e "s&shape_export_opt_lightmap_log&$seolog&g" | sed -e "s&shape_lightmap_path&$build_gamedata_directory/processes/shape/lightmap_not_optimized&g" | sed -e "s&output_directory_anim&$build_gamedata_directory/processes/shape/anim&g" > $max_directory/scripts/shape_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript shape_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript shape_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript shape_export.ms -q -mi -vn
# Idle
../../idle.bat
done
# *********************************************
# *********************************************
# *** Export character lod shape files (.clod) from Max
# *********************************************
# *********************************************
# Get the clod directories
clod_source_directories=`cat ../../cfg/directories.cfg | grep "clod_source_directory" | sed -e 's/clod_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- >> log.log
echo --- Export clod >> log.log
echo ------- >> log.log
echo -------
echo --- Export clod
echo -------
date >> log.log
date
# For each directoy
for i in $clod_source_directories ; do
# Copy the script. TAKE IT FROM clodbank process. But write it here.
cat ../clodbank/maxscript/clod_export.ms | sed -e "s&shape_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_clod&$build_gamedata_directory/processes/shape/clod&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/shape/tag&g" > $max_directory/scripts/clod_export.ms
# Start max
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Concat log.log files
echo Try 1 >> log.log
cat $max_directory/log.log >> log.log
# Idle
../../idle.bat
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Concat log.log files
echo Try 2 >> log.log
cat $max_directory/log.log >> log.log
# Idle
../../idle.bat
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Concat log.log files
echo Try 3 >> log.log
cat $max_directory/log.log >> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *********************************************
# *********************************************
# *** Export shape files (.shape) from Max
# *********************************************
# *********************************************
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "shape_export_timeout" | sed -e 's/shape_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the shape directories
shape_source_directories=`cat ../../cfg/directories.cfg | grep "shape_source_directory" | sed -e 's/shape_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Get the options
if ( test "$quality_flag" )
then
# We are in BEST mode
seoel=`cat ../../cfg/config.cfg | grep "shape_export_opt_export_lighting" | sed -e 's/shape_export_opt_export_lighting//' | sed -e 's/ //g' | sed -e 's/=//g'`
seos=`cat ../../cfg/config.cfg | grep "shape_export_opt_shadow" | sed -e 's/shape_export_opt_shadow//' | sed -e 's/ //g' | sed -e 's/=//g'`
seoll=`cat ../../cfg/config.cfg | grep "shape_export_opt_lighting_limit" | sed -e 's/shape_export_opt_lighting_limit//' | sed -e 's/ //g' | sed -e 's/=//g'`
seols=`cat ../../cfg/config.cfg | grep "shape_export_opt_lumel_size" | sed -e 's/shape_export_opt_lumel_size//' | sed -e 's/ //g' | sed -e 's/=//g'`
seoo=`cat ../../cfg/config.cfg | grep "shape_export_opt_oversampling" | sed -e 's/shape_export_opt_oversampling//' | sed -e 's/ //g' | sed -e 's/=//g'`
else
# We are in DRAFT mode
seoel='false'
seos='false'
seoll='0'
seols='0.25'
seoo='1'
fi
seolog=`cat ../../cfg/config.cfg | grep "shape_export_opt_lightmap_log" | sed -e 's/shape_export_opt_lightmap_log//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export shape >> log.log
echo ------- >> log.log
echo -------
echo --- Export shape
echo -------
date >> log.log
date
# For each directoy
for i in $shape_source_directories ; do
# Copy the script
cat maxscript/shape_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/shape/log.log&g" | sed -e "s&shape_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/shape/tag&g" | sed -e "s&output_directory_without_coarse_mesh&$build_gamedata_directory/processes/shape/shape_not_optimized&g" | sed -e "s&output_directory_with_coarse_mesh&$build_gamedata_directory/processes/shape/shape_with_coarse_mesh&g" | sed -e "s&shape_export_opt_export_lighting&$seoel&g" | sed -e "s&shape_export_opt_shadow&$seos&g" | sed -e "s&shape_export_opt_lighting_limit&$seoll&g" | sed -e "s&shape_export_opt_lumel_size&$seols&g" | sed -e "s&shape_export_opt_oversampling&$seoo&g"| sed -e "s&shape_export_opt_lightmap_log&$seolog&g" | sed -e "s&shape_lightmap_path&$build_gamedata_directory/processes/shape/lightmap_not_optimized&g" | sed -e "s&output_directory_anim&$build_gamedata_directory/processes/shape/anim&g" > $max_directory/scripts/shape_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript shape_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript shape_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript shape_export.ms -q -mi -vn
# Idle
../../idle.bat
done
# *********************************************
# *********************************************
# *** Export character lod shape files (.clod) from Max
# *********************************************
# *********************************************
# Get the clod directories
clod_source_directories=`cat ../../cfg/directories.cfg | grep "clod_source_directory" | sed -e 's/clod_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- >> log.log
echo --- Export clod >> log.log
echo ------- >> log.log
echo -------
echo --- Export clod
echo -------
date >> log.log
date
# For each directoy
for i in $clod_source_directories ; do
# Copy the script. TAKE IT FROM clodbank process. But write it here.
cat ../clodbank/maxscript/clod_export.ms | sed -e "s&shape_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_clod&$build_gamedata_directory/processes/shape/clod&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/shape/tag&g" > $max_directory/scripts/clod_export.ms
# Start max
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Concat log.log files
echo Try 1 >> log.log
cat $max_directory/log.log >> log.log
# Idle
../../idle.bat
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Concat log.log files
echo Try 2 >> log.log
cat $max_directory/log.log >> log.log
# Idle
../../idle.bat
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript clod_export.ms -q -mi -vn
# Concat log.log files
echo Try 3 >> log.log
cat $max_directory/log.log >> log.log
# Idle
../../idle.bat
done

@ -1,36 +1,36 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install shapes in the client data
# Get the shape install directory
shape_install_directory=`cat ../../cfg/directories.cfg | grep "shape_install_directory" | sed -e 's/shape_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the lightmaps install directory
lightmap_install_directory=`cat ../../cfg/directories.cfg | grep "lightmap_install_directory" | sed -e 's/lightmap_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Shape >> log.log
echo ------- >> log.log
echo -------
echo --- Install Shape
echo -------
date >> log.log
date
cp -u -p -R shape/. $client_directory/$shape_install_directory 2>> log.log
cp -u -p -R shape_with_coarse_mesh_builded/. $client_directory/$shape_install_directory 2>> log.log
if test "$lightmap_install_directory"; then
mkdir $client_directory/$lightmap_install_directory 2>> log.log 2> /dev/null
cp -u -p -R lightmap_16_bits/. $client_directory/$lightmap_install_directory 2>> log.log
fi
cp -u -p -R anim/. $client_directory/$shape_install_directory 2>> log.log
ls anim | grep ".anim" >> $client_directory/auto_animations_list.txt
#!/bin/bash
rm log.log 2> /dev/null
# Install shapes in the client data
# Get the shape install directory
shape_install_directory=`cat ../../cfg/directories.cfg | grep "shape_install_directory" | sed -e 's/shape_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the lightmaps install directory
lightmap_install_directory=`cat ../../cfg/directories.cfg | grep "lightmap_install_directory" | sed -e 's/lightmap_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Shape >> log.log
echo ------- >> log.log
echo -------
echo --- Install Shape
echo -------
date >> log.log
date
cp -u -p -R shape/. $client_directory/$shape_install_directory 2>> log.log
cp -u -p -R shape_with_coarse_mesh_builded/. $client_directory/$shape_install_directory 2>> log.log
if test "$lightmap_install_directory"; then
mkdir $client_directory/$lightmap_install_directory 2>> log.log 2> /dev/null
cp -u -p -R lightmap_16_bits/. $client_directory/$lightmap_install_directory 2>> log.log
fi
cp -u -p -R anim/. $client_directory/$shape_install_directory 2>> log.log
ls anim | grep ".anim" >> $client_directory/auto_animations_list.txt

@ -1,80 +1,80 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export skeleton files (.skel) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "skel_export_timeout" | sed -e 's/skel_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the skel directories
skel_source_directories=`cat ../../cfg/directories.cfg | grep "skel_source_directory" | sed -e 's/skel_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export skeleton from MAX>> log.log
echo ------- >> log.log
echo -------
echo --- Export skeleton from MAX
echo -------
date >> log.log
date
# For each directoy
for i in $skel_source_directories ; do
# Copy the script
cat maxscript/skel_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/skel/log.log&g" | sed -e "s&skel_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/skel/skel&g" > $max_directory/scripts/skel_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript skel_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript skel_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript skel_export.ms -q -mi -vn
# Idle
../../idle.bat
done
# *** Export skeleton files (.skel) directly from .skel version
# Log error
echo ------- >> log.log
echo --- Copy skeleton from .skel>> log.log
echo ------- >> log.log
echo -------
echo --- Copy skeleton from .skel
echo -------
date >> log.log
date
# For each directoy
for i in $skel_source_directories ; do
# copy
cp -u -p $database_directory/$i/*.[sS][kK][eE][lL] skel 2>> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export skeleton files (.skel) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "skel_export_timeout" | sed -e 's/skel_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the skel directories
skel_source_directories=`cat ../../cfg/directories.cfg | grep "skel_source_directory" | sed -e 's/skel_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export skeleton from MAX>> log.log
echo ------- >> log.log
echo -------
echo --- Export skeleton from MAX
echo -------
date >> log.log
date
# For each directoy
for i in $skel_source_directories ; do
# Copy the script
cat maxscript/skel_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/skel/log.log&g" | sed -e "s&skel_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/skel/skel&g" > $max_directory/scripts/skel_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript skel_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript skel_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript skel_export.ms -q -mi -vn
# Idle
../../idle.bat
done
# *** Export skeleton files (.skel) directly from .skel version
# Log error
echo ------- >> log.log
echo --- Copy skeleton from .skel>> log.log
echo ------- >> log.log
echo -------
echo --- Copy skeleton from .skel
echo -------
date >> log.log
date
# For each directoy
for i in $skel_source_directories ; do
# copy
cp -u -p $database_directory/$i/*.[sS][kK][eE][lL] skel 2>> log.log
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install skel in the client data
# Get the skel install directory
skel_install_directory=`cat ../../cfg/directories.cfg | grep "skel_install_directory" | sed -e 's/skel_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install skeleton >> log.log
echo ------- >> log.log
echo -------
echo --- Install skeleton
echo -------
date >> log.log
date
cp -u -p -R skel/. $client_directory/$skel_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install skel in the client data
# Get the skel install directory
skel_install_directory=`cat ../../cfg/directories.cfg | grep "skel_install_directory" | sed -e 's/skel_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install skeleton >> log.log
echo ------- >> log.log
echo -------
echo --- Install skeleton
echo -------
date >> log.log
date
cp -u -p -R skel/. $client_directory/$skel_install_directory 2>> log.log

@ -1,72 +1,72 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export bank file (.bank) from Max
# Some exe
build_smallbank='build_smallbank.exe'
exec_timeout='exec_timeout.exe'
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the swt directories
bank_source_directory=`cat ../../cfg/directories.cfg | grep "bank_source_directory" | sed -e 's/bank_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "smallbank_build_timeout" | sed -e 's/smallbank_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the tiles root directories
tile_root_source_directory=`cat ../../cfg/directories.cfg | grep "tile_root_source_directory" | sed -e 's/tile_root_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export bank >> log.log
echo ------- >> log.log
echo -------
echo --- Export bank
echo -------
date >> log.log
date
# Copy the bank
cp -u -p $database_directory/$bank_source_directory/*.[bB][aA][nN][kK] bank 2>> log.log
# Build the small bank
# Log error
echo ------- > log.log
echo --- Build bank >> log.log
echo ------- >> log.log
echo -------
echo --- Build bank
echo -------
date >> log.log
date
# list all the bank
bank_list=`ls -1 bank/*.[bB][aA][nN][kK]`
# For each bank
for i in $bank_list ; do
# Destination the name
dest=`echo $i | sed -e 's&bank&smallbank&g'`
# Make the dependencies
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $build_smallbank $i $dest $database_directory/$tile_root_source_directory/
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export bank file (.bank) from Max
# Some exe
build_smallbank='build_smallbank.exe'
exec_timeout='exec_timeout.exe'
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the swt directories
bank_source_directory=`cat ../../cfg/directories.cfg | grep "bank_source_directory" | sed -e 's/bank_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "smallbank_build_timeout" | sed -e 's/smallbank_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the tiles root directories
tile_root_source_directory=`cat ../../cfg/directories.cfg | grep "tile_root_source_directory" | sed -e 's/tile_root_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export bank >> log.log
echo ------- >> log.log
echo -------
echo --- Export bank
echo -------
date >> log.log
date
# Copy the bank
cp -u -p $database_directory/$bank_source_directory/*.[bB][aA][nN][kK] bank 2>> log.log
# Build the small bank
# Log error
echo ------- > log.log
echo --- Build bank >> log.log
echo ------- >> log.log
echo -------
echo --- Build bank
echo -------
date >> log.log
date
# list all the bank
bank_list=`ls -1 bank/*.[bB][aA][nN][kK]`
# For each bank
for i in $bank_list ; do
# Destination the name
dest=`echo $i | sed -e 's&bank&smallbank&g'`
# Make the dependencies
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $build_smallbank $i $dest $database_directory/$tile_root_source_directory/
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the bank in the client data
# Get the bank install directory
bank_install_directory=`cat ../../cfg/directories.cfg | grep "bank_install_directory" | sed -e 's/bank_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install smallbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install smallbank
echo -------
date >> log.log
date
cp -u -p -R smallbank/. $client_directory/$bank_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the bank in the client data
# Get the bank install directory
bank_install_directory=`cat ../../cfg/directories.cfg | grep "bank_install_directory" | sed -e 's/bank_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install smallbank >> log.log
echo ------- >> log.log
echo -------
echo --- Install smallbank
echo -------
date >> log.log
date
cp -u -p -R smallbank/. $client_directory/$bank_install_directory 2>> log.log

@ -1,57 +1,57 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export skeleton weight files (.swt) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "swt_export_timeout" | sed -e 's/swt_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the swt directories
swt_source_directories=`cat ../../cfg/directories.cfg | grep "swt_source_directory" | sed -e 's/swt_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export skeleton weight >> log.log
echo ------- >> log.log
echo -------
echo --- Export skeleton weight
echo -------
date >> log.log
date
# For each directoy
for i in $swt_source_directories ; do
# Copy the script
cat maxscript/swt_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/swt/log.log&g" | sed -e "s&swt_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/swt/swt&g" > $max_directory/scripts/swt_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript swt_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript swt_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript swt_export.ms -q -mi -vn
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export skeleton weight files (.swt) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "swt_export_timeout" | sed -e 's/swt_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the swt directories
swt_source_directories=`cat ../../cfg/directories.cfg | grep "swt_source_directory" | sed -e 's/swt_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export skeleton weight >> log.log
echo ------- >> log.log
echo -------
echo --- Export skeleton weight
echo -------
date >> log.log
date
# For each directoy
for i in $swt_source_directories ; do
# Copy the script
cat maxscript/swt_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/swt/log.log&g" | sed -e "s&swt_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/swt/swt&g" > $max_directory/scripts/swt_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript swt_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript swt_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript swt_export.ms -q -mi -vn
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install swt in the client data
# Get the swt install directory
swt_install_directory=`cat ../../cfg/directories.cfg | grep "swt_install_directory" | sed -e 's/swt_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install skeleton weight >> log.log
echo ------- >> log.log
echo -------
echo --- Install skeleton weight
echo -------
date >> log.log
date
cp -u -p -R swt/. $client_directory/$swt_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install swt in the client data
# Get the swt install directory
swt_install_directory=`cat ../../cfg/directories.cfg | grep "swt_install_directory" | sed -e 's/swt_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install skeleton weight >> log.log
echo ------- >> log.log
echo -------
echo --- Install skeleton weight
echo -------
date >> log.log
date
cp -u -p -R swt/. $client_directory/$swt_install_directory 2>> log.log

@ -1,43 +1,43 @@
#!/bin/bash
rm log.log 2> /dev/null
tga_2_dds='tga2dds.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "maps_build_timeout" | sed -e 's/maps_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Build the tile textures
# Log error
echo ------- > log.log
echo --- Build tiles >> log.log
echo ------- >> log.log
echo -------
echo --- Build tiles
echo -------
date >> log.log
date
# For each texture
for i in maps_tga/*.[tT][gG][aA] ; do
if ( test -e $i )
then
dest=`echo $i | sed -e 's/maps_tga/maps_final/g' | sed -e 's/.tga/.dds/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $tga_2_dds $i -o $dest -a 5 -m
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
fi
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
tga_2_dds='tga2dds.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "maps_build_timeout" | sed -e 's/maps_build_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Build the tile textures
# Log error
echo ------- > log.log
echo --- Build tiles >> log.log
echo ------- >> log.log
echo -------
echo --- Build tiles
echo -------
date >> log.log
date
# For each texture
for i in maps_tga/*.[tT][gG][aA] ; do
if ( test -e $i )
then
dest=`echo $i | sed -e 's/maps_tga/maps_final/g' | sed -e 's/.tga/.dds/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
$exec_timeout $timeout $tga_2_dds $i -o $dest -a 5 -m
if ( test -e $dest )
then
echo OK $dest >> log.log
else
echo ERROR building $dest >> log.log
fi
else
echo SKIPPED $dest >> log.log
fi
fi
# Idle
../../idle.bat
done

@ -1,33 +1,33 @@
#!/bin/bash
rm log.log 2> /dev/null
# Export the tile textures
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the tile directories
tile_source_directories=`cat ../../cfg/directories.cfg | grep "tile_source_directories" | sed -e 's/tile_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export tiles >> log.log
echo ------- >> log.log
echo -------
echo --- Export tiles
echo -------
date >> log.log
date
# For each directoy
for i in $tile_source_directories ; do
list_textures=`find $database_directory/$i -type f -name '*.[tT][gG][aA]'`
# For each textures
for j in $list_textures ; do
cp -u -p $j maps_tga/ 2>> log.log
done
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# Export the tile textures
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the tile directories
tile_source_directories=`cat ../../cfg/directories.cfg | grep "tile_source_directories" | sed -e 's/tile_source_directories//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export tiles >> log.log
echo ------- >> log.log
echo -------
echo --- Export tiles
echo -------
date >> log.log
date
# For each directoy
for i in $tile_source_directories ; do
list_textures=`find $database_directory/$i -type f -name '*.[tT][gG][aA]'`
# For each textures
for j in $list_textures ; do
cp -u -p $j maps_tga/ 2>> log.log
done
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install tiles in the client data
# Get the tile install directory
tile_install_directory=`cat ../../cfg/directories.cfg | grep "tile_install_directory" | sed -e 's/tile_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Tiles >> log.log
echo ------- >> log.log
echo -------
echo --- Install Tiles
echo -------
date >> log.log
date
cp -u -p -R maps_final/. $client_directory/$tile_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install tiles in the client data
# Get the tile install directory
tile_install_directory=`cat ../../cfg/directories.cfg | grep "tile_install_directory" | sed -e 's/tile_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Tiles >> log.log
echo ------- >> log.log
echo -------
echo --- Install Tiles
echo -------
date >> log.log
date
cp -u -p -R maps_final/. $client_directory/$tile_install_directory 2>> log.log

@ -1,52 +1,52 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export veget files (.veget) from Max
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the veget directories
veget_source_directories=`cat ../../cfg/directories.cfg | grep "veget_source_directory" | sed -e 's/veget_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export veget >> log.log
echo ------- >> log.log
echo -------
echo --- Export veget
echo -------
date >> log.log
date
# For each directoy
for i in $veget_source_directories ; do
# Copy the script
cat maxscript/veget_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/veget/log.log&g" | sed -e "s&veget_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_veget&$build_gamedata_directory/processes/veget/veget&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/veget/tag&g" > $max_directory/scripts/veget_export.ms
# Start max
echo Try 1 >> log.log
$max_directory/3dsmax.exe -U MAXScript veget_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$max_directory/3dsmax.exe -U MAXScript veget_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$max_directory/3dsmax.exe -U MAXScript veget_export.ms -q -mi -vn
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export veget files (.veget) from Max
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the veget directories
veget_source_directories=`cat ../../cfg/directories.cfg | grep "veget_source_directory" | sed -e 's/veget_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
# Log error
echo ------- > log.log
echo --- Export veget >> log.log
echo ------- >> log.log
echo -------
echo --- Export veget
echo -------
date >> log.log
date
# For each directoy
for i in $veget_source_directories ; do
# Copy the script
cat maxscript/veget_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/veget/log.log&g" | sed -e "s&veget_source_directory&$database_directory/$i&g" | sed -e "s&output_directory_veget&$build_gamedata_directory/processes/veget/veget&g" | sed -e "s&output_directory_tag&$build_gamedata_directory/processes/veget/tag&g" > $max_directory/scripts/veget_export.ms
# Start max
echo Try 1 >> log.log
$max_directory/3dsmax.exe -U MAXScript veget_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 2 >> log.log
$max_directory/3dsmax.exe -U MAXScript veget_export.ms -q -mi -vn
# Idle
../../idle.bat
echo Try 3 >> log.log
$max_directory/3dsmax.exe -U MAXScript veget_export.ms -q -mi -vn
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install vegets in the client data
# Get the veget install directory
veget_install_directory=`cat ../../cfg/directories.cfg | grep "veget_install_directory" | sed -e 's/veget_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install veget >> log.log
echo ------- >> log.log
echo -------
echo --- Install veget
echo -------
date >> log.log
date
cp -u -p -R veget/. $client_directory/$veget_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install vegets in the client data
# Get the veget install directory
veget_install_directory=`cat ../../cfg/directories.cfg | grep "veget_install_directory" | sed -e 's/veget_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install veget >> log.log
echo ------- >> log.log
echo -------
echo --- Install veget
echo -------
date >> log.log
date
cp -u -p -R veget/. $client_directory/$veget_install_directory 2>> log.log

@ -1,29 +1,29 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export vegetset file (.vegetset)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the vegetset directories
vegetset_source_directories=`cat ../../cfg/directories.cfg | grep "vegetset_source_directory" | sed -e 's/vegetset_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export vegetset >> log.log
echo ------- >> log.log
echo -------
echo --- Export vegetset
echo -------
date >> log.log
date
# For each vegetset directory
for i in $vegetset_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[vV][eE][gG][eE][tT][sS][eE][tT] vegetset 2>> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export vegetset file (.vegetset)
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the vegetset directories
vegetset_source_directories=`cat ../../cfg/directories.cfg | grep "vegetset_source_directory" | sed -e 's/vegetset_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export vegetset >> log.log
echo ------- >> log.log
echo -------
echo --- Export vegetset
echo -------
date >> log.log
date
# For each vegetset directory
for i in $vegetset_source_directories ; do
# Copy
cp -u -p $database_directory/$i/*.[vV][eE][gG][eE][tT][sS][eE][tT] vegetset 2>> log.log
# Idle
../../idle.bat
done

@ -1,22 +1,22 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the vegetable set in the client data
# Get the vegetset install directory
vegetset_install_directory=`cat ../../cfg/directories.cfg | grep "vegetset_install_directory" | sed -e 's/vegetset_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install vegetset >> log.log
echo ------- >> log.log
echo -------
echo --- Install vegetset
echo -------
date >> log.log
date
cp -u -p -R vegetset/. $client_directory/$vegetset_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the vegetable set in the client data
# Get the vegetset install directory
vegetset_install_directory=`cat ../../cfg/directories.cfg | grep "vegetset_install_directory" | sed -e 's/vegetset_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install vegetset >> log.log
echo ------- >> log.log
echo -------
echo --- Install vegetset
echo -------
date >> log.log
date
cp -u -p -R vegetset/. $client_directory/$vegetset_install_directory 2>> log.log

@ -1,149 +1,149 @@
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
zone_dependencies='zone_dependencies.exe'
zone_welder='zone_welder.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
depend_timeout=`cat ../../cfg/config.cfg | grep "zone_build_depend_timeout" | sed -e 's/zone_build_depend_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
weld_timeout=`cat ../../cfg/config.cfg | grep "zone_build_weld_timeout" | sed -e 's/zone_build_weld_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# **** Build dependencies
if ( test "$quality_flag" )
then
# We are in BEST mode
# Log error
echo ------- >> log.log
echo --- Build zone : dependencies >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : dependencies
echo -------
date >> log.log
date
cp ../../cfg/properties.cfg zone_depencies_properties.cfg
#append the level design directory at the end of the config file
ld_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_world_dir=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_dfn_dir=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file_name=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//g' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "level_design_directory = \"$ld_dir\";" >> zone_depencies_properties.cfg
echo "level_design_world_directory = \"$ld_world_dir\";" >> zone_depencies_properties.cfg
echo "level_design_dfn_directory = \"$ld_dfn_dir\";" >> zone_depencies_properties.cfg
echo "continent_name = \"$continent_file_name\";" >> zone_depencies_properties.cfg
# list all the dependencies regions
zone_regions=`cat ../../cfg/config.cfg | grep "zone_region" | sed -e 's/zone_region//' | sed -e 's/ //g' | sed -e 's/=//g'`
# For each dependencies region
for i in $zone_regions ; do
# Extract the name
arg=`echo zone_exported/$zone_regions | sed -e 's&,&.zone zone_exported/&g'`
# Make the dependencies
$exec_timeout $depend_timeout $zone_dependencies zone_depencies_properties.cfg $arg.zone zone_depend/doomy.depend
# Idle
../../idle.bat
done
fi
# **** Weld
# Log error
echo ------- >> log.log
echo --- Build zone : weld >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : weld
echo -------
date >> log.log
date
# List the zones to weld
list_zone=`ls -1 zone_exported/*.[zZ][oO][nN][eE]`
# Build a zones list to weld
echo -- Build a list of file to weld
rm zone_to_weld.txt 2> /dev/null
for i in $list_zone ; do
dest=`echo $i | sed -e 's/zone_exported/zone_welded/g' | sed -e 's/.zone/.zonew/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
echo $i >> zone_to_weld.txt
rm $dest
fi
# Idle
../../idle.bat
done
# Weld the zone
if (test -f zone_to_weld.txt)
then
list_zone=`cat zone_to_weld.txt`
for i in $list_zone ; do
echo -- Weld $i
echo -- Weld $i >> log.log
$exec_timeout $weld_timeout $zone_welder $i $dest
echo
# Idle
../../idle.bat
done
fi
# Log error
echo ------- >> log.log
echo --- Build zone : weld zones without heightmap >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : weld zones without heightmap
echo -------
date >> log.log
date
# List the zones to weld
list_zone=`ls -1 zone_exported/*.[zZ][oO][nN][eE][nN][hH]`
# Build a zones list to weld
echo -- Build a list of file to weld
rm zone_to_weld.txt 2> /dev/null
for i in $list_zone ; do
dest=`echo $i | sed -e 's/zone_exported/zone_welded/g' | sed -e 's/.zonenh/.zonenhw/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
echo $i >> zone_to_weld.txt
rm $dest
fi
# Idle
../../idle.bat
done
# Weld the zone
if (test -f zone_to_weld.txt)
then
list_zone=`cat zone_to_weld.txt`
for i in $list_zone ; do
echo -- Weld $i
echo -- Weld $i >> log.log
$exec_timeout $weld_timeout $zone_welder $i $dest
echo
# Idle
../../idle.bat
done
fi
# Build a zones list to weld
rm zone_to_weld.txt 2> /dev/null
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
zone_dependencies='zone_dependencies.exe'
zone_welder='zone_welder.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
depend_timeout=`cat ../../cfg/config.cfg | grep "zone_build_depend_timeout" | sed -e 's/zone_build_depend_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
weld_timeout=`cat ../../cfg/config.cfg | grep "zone_build_weld_timeout" | sed -e 's/zone_build_weld_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat ../../cfg/site.cfg | grep "build_quality" | grep "1"`
# **** Build dependencies
if ( test "$quality_flag" )
then
# We are in BEST mode
# Log error
echo ------- >> log.log
echo --- Build zone : dependencies >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : dependencies
echo -------
date >> log.log
date
cp ../../cfg/properties.cfg zone_depencies_properties.cfg
#append the level design directory at the end of the config file
ld_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_world_dir=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_dfn_dir=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file_name=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//g' | sed -e 's/ //g' | sed -e 's/=//g'`
echo "level_design_directory = \"$ld_dir\";" >> zone_depencies_properties.cfg
echo "level_design_world_directory = \"$ld_world_dir\";" >> zone_depencies_properties.cfg
echo "level_design_dfn_directory = \"$ld_dfn_dir\";" >> zone_depencies_properties.cfg
echo "continent_name = \"$continent_file_name\";" >> zone_depencies_properties.cfg
# list all the dependencies regions
zone_regions=`cat ../../cfg/config.cfg | grep "zone_region" | sed -e 's/zone_region//' | sed -e 's/ //g' | sed -e 's/=//g'`
# For each dependencies region
for i in $zone_regions ; do
# Extract the name
arg=`echo zone_exported/$zone_regions | sed -e 's&,&.zone zone_exported/&g'`
# Make the dependencies
$exec_timeout $depend_timeout $zone_dependencies zone_depencies_properties.cfg $arg.zone zone_depend/doomy.depend
# Idle
../../idle.bat
done
fi
# **** Weld
# Log error
echo ------- >> log.log
echo --- Build zone : weld >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : weld
echo -------
date >> log.log
date
# List the zones to weld
list_zone=`ls -1 zone_exported/*.[zZ][oO][nN][eE]`
# Build a zones list to weld
echo -- Build a list of file to weld
rm zone_to_weld.txt 2> /dev/null
for i in $list_zone ; do
dest=`echo $i | sed -e 's/zone_exported/zone_welded/g' | sed -e 's/.zone/.zonew/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
echo $i >> zone_to_weld.txt
rm $dest
fi
# Idle
../../idle.bat
done
# Weld the zone
if (test -f zone_to_weld.txt)
then
list_zone=`cat zone_to_weld.txt`
for i in $list_zone ; do
echo -- Weld $i
echo -- Weld $i >> log.log
$exec_timeout $weld_timeout $zone_welder $i $dest
echo
# Idle
../../idle.bat
done
fi
# Log error
echo ------- >> log.log
echo --- Build zone : weld zones without heightmap >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : weld zones without heightmap
echo -------
date >> log.log
date
# List the zones to weld
list_zone=`ls -1 zone_exported/*.[zZ][oO][nN][eE][nN][hH]`
# Build a zones list to weld
echo -- Build a list of file to weld
rm zone_to_weld.txt 2> /dev/null
for i in $list_zone ; do
dest=`echo $i | sed -e 's/zone_exported/zone_welded/g' | sed -e 's/.zonenh/.zonenhw/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
echo $i >> zone_to_weld.txt
rm $dest
fi
# Idle
../../idle.bat
done
# Weld the zone
if (test -f zone_to_weld.txt)
then
list_zone=`cat zone_to_weld.txt`
for i in $list_zone ; do
echo -- Weld $i
echo -- Weld $i >> log.log
$exec_timeout $weld_timeout $zone_welder $i $dest
echo
# Idle
../../idle.bat
done
fi
# Build a zones list to weld
rm zone_to_weld.txt 2> /dev/null

@ -1,109 +1,109 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export zone files (.zone) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "zone_export_timeout" | sed -e 's/zone_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the zone directories
zone_source_directories=`cat ../../cfg/directories.cfg | grep "zone_source_directory" | sed -e 's/zone_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ligo value
ligo_flag=`cat ../../cfg/config.cfg | grep "process_to_complete" | grep "ligo"`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
if ( test "$ligo_flag" )
then
echo [Ligo] ON
echo [Ligo] ON >> log.log
else
echo [Ligo] OFF
echo [Ligo] OFF >> log.log
fi
# Log error
echo ------- > log.log
echo --- Export zone >> log.log
echo ------- >> log.log
echo -------
echo --- Export zone
echo -------
date >> log.log
date
# Try to export from Max zone if any
for i in $zone_source_directories ; do
# Copy the script
cat maxscript/zone_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/zone/log.log&g" | sed -e "s&zone_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/zone/zone_exported&g" > $max_directory/scripts/zone_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript zone_export.ms -q -mi -vn
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript zone_export.ms -q -mi -vn
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript zone_export.ms -q -mi -vn
# Idle
../../idle.bat
done
# ****************************
# Try to copy ligo zone if any
# ****************************
dir_current=`pwd`
cd ../ligo/output
list_zone=`ls -1 *.[zZ][oO][nN][eE]`
for filename in $list_zone ; do
echo "Checking $filename for update"
if test -e ../../zone/zone_exported/$filename ; then
must_update=`diff --binary -q $filename ../../zone/zone_exported/$filename` ;
else
must_update=YES ;
fi
if test -n "$must_update" ; then
echo " Updating"
cp -u -p $filename ../../zone/zone_exported/$filename ;
fi
# Idle
../../../idle.bat
done
cd $dir_current
# delete files only present in the zone_exported directory
if ( test "$ligo_flag" )
then
cd ./zone_exported
list_zone=`ls -1 *.[zZ][oO][nN][eE]`
for filename in $list_zone ; do
if test -e ../../ligo/output/$filename ; then
must_update=NO ;
else
echo "Removing $filename"
rm $filename ;
fi
# Idle
../../../idle.bat
done
cd ..
fi
#!/bin/bash
rm log.log 2> /dev/null
# *** Export zone files (.zone) from Max
exec_timeout='exec_timeout.exe'
# Get the timeout
timeout=`cat ../../cfg/config.cfg | grep "zone_export_timeout" | sed -e 's/zone_export_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the build gamedata directory
build_gamedata_directory=`cat ../../cfg/site.cfg | grep "build_gamedata_directory" | sed -e 's/build_gamedata_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the zone directories
zone_source_directories=`cat ../../cfg/directories.cfg | grep "zone_source_directory" | sed -e 's/zone_source_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the ligo value
ligo_flag=`cat ../../cfg/config.cfg | grep "process_to_complete" | grep "ligo"`
# Maxdir
max_directory=`echo $MAX_DIR | sed -e 's&\\\&/&g'`
if ( test "$ligo_flag" )
then
echo [Ligo] ON
echo [Ligo] ON >> log.log
else
echo [Ligo] OFF
echo [Ligo] OFF >> log.log
fi
# Log error
echo ------- > log.log
echo --- Export zone >> log.log
echo ------- >> log.log
echo -------
echo --- Export zone
echo -------
date >> log.log
date
# Try to export from Max zone if any
for i in $zone_source_directories ; do
# Copy the script
cat maxscript/zone_export.ms | sed -e "s&output_logfile&$build_gamedata_directory/processes/zone/log.log&g" | sed -e "s&zone_source_directory&$database_directory/$i&g" | sed -e "s&output_directory&$build_gamedata_directory/processes/zone/zone_exported&g" > $max_directory/scripts/zone_export.ms
# Start max
echo Try 1 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript zone_export.ms -q -mi -vn
echo Try 2 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript zone_export.ms -q -mi -vn
echo Try 3 >> log.log
$exec_timeout $timeout $max_directory/3dsmax.exe -U MAXScript zone_export.ms -q -mi -vn
# Idle
../../idle.bat
done
# ****************************
# Try to copy ligo zone if any
# ****************************
dir_current=`pwd`
cd ../ligo/output
list_zone=`ls -1 *.[zZ][oO][nN][eE]`
for filename in $list_zone ; do
echo "Checking $filename for update"
if test -e ../../zone/zone_exported/$filename ; then
must_update=`diff --binary -q $filename ../../zone/zone_exported/$filename` ;
else
must_update=YES ;
fi
if test -n "$must_update" ; then
echo " Updating"
cp -u -p $filename ../../zone/zone_exported/$filename ;
fi
# Idle
../../../idle.bat
done
cd $dir_current
# delete files only present in the zone_exported directory
if ( test "$ligo_flag" )
then
cd ./zone_exported
list_zone=`ls -1 *.[zZ][oO][nN][eE]`
for filename in $list_zone ; do
if test -e ../../ligo/output/$filename ; then
must_update=NO ;
else
echo "Removing $filename"
rm $filename ;
fi
# Idle
../../../idle.bat
done
cd ..
fi

@ -1,119 +1,119 @@
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
zone_lighter='zone_lighter.exe'
zone_ig_lighter='zone_ig_lighter.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_light_timeout" | sed -e 's/zone_build_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
ig_light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_ig_light_timeout" | sed -e 's/zone_build_ig_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# **** Light
# Log error
echo ------- >> log.log
echo --- Zone lighting >> log.log
echo ------- >> log.log
echo -------
echo --- Zone lighting
echo -------
date >> log.log
date
#append the level design directory at the end of the config file
ld_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_world_dir=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_dfn_dir=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file_name=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//g' | sed -e 's/ //g' | sed -e 's/=//g'`
cp ../../cfg/properties.cfg zone_lighter_properties.cfg
echo "level_design_directory = \"$ld_dir\";" >> zone_lighter_properties.cfg
echo "level_design_world_directory = \"$ld_world_dir\";" >> zone_lighter_properties.cfg
echo "level_design_dfn_directory = \"$ld_dfn_dir\";" >> zone_lighter_properties.cfg
echo "continent_name = \"$continent_file_name\";" >> zone_lighter_properties.cfg
# List the zones to light
list_zone_welded=`ls -1 ../zone/zone_welded/*.[zZ][oO][nN][eE][wW]`
# Light zones
for i in $list_zone_welded ; do
dest=`echo $i | sed -e 's&../zone/zone_welded&zone_lighted&g' | sed -e 's/.zonew/.zonel/g'`
depend=`echo $i | sed -e 's&../zone/zone_welded&../zone/zone_depend&g' | sed -e 's/.zonew/.depend/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
echo LIGHT $i
echo LIGHT $i >> log.log
$exec_timeout $light_timeout $zone_lighter $i $dest zone_lighter_properties.cfg $depend
echo
echo
else
echo SKIP $dest
echo SKIP $dest >> log.log
fi
# Idle
../../idle.bat
done
# List the zones lighted
list_zone_lighted_remove=`ls -1 zone_lighted/*.[zZ][oO][nN][eE][lL]`
# Remove old lighted zones
for i in $list_zone_lighted_remove ; do
source=`echo $i | sed -e 's&zone_lighted&../zone/zone_welded&g' | sed -e 's/.zonel/.zonew/g'`
if ( ! test -e $source )
then
echo REMOVE $i
echo REMOVE $i >> log.log
rm $i
fi
# Idle
../../idle.bat
done
# **** IgLight
# Log error
echo ------- >> log.log
echo --- Build zone : IgLight >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : IgLight
echo -------
date >> log.log
date
# List the zones lighted
list_zone_lighted=`ls -1 zone_lighted/*.[zZ][oO][nN][eE][lL]`
# Light zones
for i in $list_zone_lighted ; do
dest=`echo $i | sed -e 's/zone_lighted/ig_land_lighted/g' | sed -e 's/.zonel/.ig/g'`
depend=`echo $i | sed -e 's&zone_lighted&../zone/zone_depend&g' | sed -e 's/.zonel/.depend/g'`
igsrc=`echo $i | sed -e 's&zone_lighted&../ig/ig_land&g' | sed -e 's/.zonel/.ig/g'`
if ( test -f $igsrc )
then
if ( ! test -e $dest ) || ( test $i -nt $dest ) || ( test $igsrc -nt $dest )
then
echo -- IgLight $i
echo -- IgLight $i >> log.log
$exec_timeout $ig_light_timeout $zone_ig_lighter $i $dest ../../cfg/properties.cfg $depend
echo
echo
fi
else
if ( test -f $dest )
then
echo "-- Remove" $dest
rm $dest
fi
fi
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
zone_lighter='zone_lighter.exe'
zone_ig_lighter='zone_ig_lighter.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_light_timeout" | sed -e 's/zone_build_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
ig_light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_ig_light_timeout" | sed -e 's/zone_build_ig_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# **** Light
# Log error
echo ------- >> log.log
echo --- Zone lighting >> log.log
echo ------- >> log.log
echo -------
echo --- Zone lighting
echo -------
date >> log.log
date
#append the level design directory at the end of the config file
ld_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_world_dir=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_dfn_dir=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file_name=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//g' | sed -e 's/ //g' | sed -e 's/=//g'`
cp ../../cfg/properties.cfg zone_lighter_properties.cfg
echo "level_design_directory = \"$ld_dir\";" >> zone_lighter_properties.cfg
echo "level_design_world_directory = \"$ld_world_dir\";" >> zone_lighter_properties.cfg
echo "level_design_dfn_directory = \"$ld_dfn_dir\";" >> zone_lighter_properties.cfg
echo "continent_name = \"$continent_file_name\";" >> zone_lighter_properties.cfg
# List the zones to light
list_zone_welded=`ls -1 ../zone/zone_welded/*.[zZ][oO][nN][eE][wW]`
# Light zones
for i in $list_zone_welded ; do
dest=`echo $i | sed -e 's&../zone/zone_welded&zone_lighted&g' | sed -e 's/.zonew/.zonel/g'`
depend=`echo $i | sed -e 's&../zone/zone_welded&../zone/zone_depend&g' | sed -e 's/.zonew/.depend/g'`
if ( ! test -e $dest ) || ( test $i -nt $dest )
then
echo LIGHT $i
echo LIGHT $i >> log.log
$exec_timeout $light_timeout $zone_lighter $i $dest zone_lighter_properties.cfg $depend
echo
echo
else
echo SKIP $dest
echo SKIP $dest >> log.log
fi
# Idle
../../idle.bat
done
# List the zones lighted
list_zone_lighted_remove=`ls -1 zone_lighted/*.[zZ][oO][nN][eE][lL]`
# Remove old lighted zones
for i in $list_zone_lighted_remove ; do
source=`echo $i | sed -e 's&zone_lighted&../zone/zone_welded&g' | sed -e 's/.zonel/.zonew/g'`
if ( ! test -e $source )
then
echo REMOVE $i
echo REMOVE $i >> log.log
rm $i
fi
# Idle
../../idle.bat
done
# **** IgLight
# Log error
echo ------- >> log.log
echo --- Build zone : IgLight >> log.log
echo ------- >> log.log
echo -------
echo --- Build zone : IgLight
echo -------
date >> log.log
date
# List the zones lighted
list_zone_lighted=`ls -1 zone_lighted/*.[zZ][oO][nN][eE][lL]`
# Light zones
for i in $list_zone_lighted ; do
dest=`echo $i | sed -e 's/zone_lighted/ig_land_lighted/g' | sed -e 's/.zonel/.ig/g'`
depend=`echo $i | sed -e 's&zone_lighted&../zone/zone_depend&g' | sed -e 's/.zonel/.depend/g'`
igsrc=`echo $i | sed -e 's&zone_lighted&../ig/ig_land&g' | sed -e 's/.zonel/.ig/g'`
if ( test -f $igsrc )
then
if ( ! test -e $dest ) || ( test $i -nt $dest ) || ( test $igsrc -nt $dest )
then
echo -- IgLight $i
echo -- IgLight $i >> log.log
$exec_timeout $ig_light_timeout $zone_ig_lighter $i $dest ../../cfg/properties.cfg $depend
echo
echo
fi
else
if ( test -f $dest )
then
echo "-- Remove" $dest
rm $dest
fi
fi
# Idle
../../idle.bat
done

@ -1,28 +1,28 @@
#!/bin/bash
rm log.log 2> /dev/null
# *** Export zone files (.zone) from Max
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the water maps directories
water_map_directories=`cat ../../cfg/directories.cfg | grep "water_map_directory" | sed -e 's/water_map_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export water shape >> log.log
echo ------- >> log.log
echo -------
echo --- Export water shape
echo -------
date >> log.log
date
#copy each water map before lightmapping
for i in $water_map_directories ; do
cp -u -p $database_directory/$i/*.[tT][gG][aA] water_shapes_lighted 2>> log.log
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# *** Export zone files (.zone) from Max
# Get the database directory
database_directory=`cat ../../cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the water maps directories
water_map_directories=`cat ../../cfg/directories.cfg | grep "water_map_directory" | sed -e 's/water_map_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Export water shape >> log.log
echo ------- >> log.log
echo -------
echo --- Export water shape
echo -------
date >> log.log
date
#copy each water map before lightmapping
for i in $water_map_directories ; do
cp -u -p $database_directory/$i/*.[tT][gG][aA] water_shapes_lighted 2>> log.log
# Idle
../../idle.bat
done

@ -1,44 +1,44 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the zonels in the client data
# Get the zone install directory
zone_install_directory=`cat ../../cfg/directories.cfg | grep "zone_install_directory" | sed -e 's/zone_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install zone >> log.log
echo ------- >> log.log
echo -------
echo --- Install zone
echo -------
date >> log.log
date
cp -u -p -R zone_lighted/. $client_directory/$zone_install_directory 2>> log.log
# copy the water maps once they have been lighted
cp -u -p -R water_shapes_lighted/. $client_directory/$water_maps_directories
# Install zone ig lighted in the client data
# Get the ig install directory
ig_install_directory=`cat ../../cfg/directories.cfg | grep "ig_install_directory" | sed -e 's/ig_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Zone Ig >> log.log
echo ------- >> log.log
echo -------
echo --- Install Zone Ig
echo -------
date >> log.log
date
cp -u -p -R ig_land_lighted/. $client_directory/$ig_install_directory 2>> log.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the zonels in the client data
# Get the zone install directory
zone_install_directory=`cat ../../cfg/directories.cfg | grep "zone_install_directory" | sed -e 's/zone_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client directory
client_directory=`cat ../../cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install zone >> log.log
echo ------- >> log.log
echo -------
echo --- Install zone
echo -------
date >> log.log
date
cp -u -p -R zone_lighted/. $client_directory/$zone_install_directory 2>> log.log
# copy the water maps once they have been lighted
cp -u -p -R water_shapes_lighted/. $client_directory/$water_maps_directories
# Install zone ig lighted in the client data
# Get the ig install directory
ig_install_directory=`cat ../../cfg/directories.cfg | grep "ig_install_directory" | sed -e 's/ig_install_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo ------- > log.log
echo --- Install Zone Ig >> log.log
echo ------- >> log.log
echo -------
echo --- Install Zone Ig
echo -------
date >> log.log
date
cp -u -p -R ig_land_lighted/. $client_directory/$ig_install_directory 2>> log.log

@ -1,63 +1,63 @@
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
zone_lighter='zone_lighter.exe'
zone_ig_lighter='zone_ig_lighter.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_light_timeout" | sed -e 's/zone_build_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
ig_light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_ig_light_timeout" | sed -e 's/zone_build_ig_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# **** Light
# Log error
echo ------- >> log.log
echo --- Zone lighting >> log.log
echo ------- >> log.log
echo -------
echo --- Zone lighting
echo -------
date >> log.log
date
#append the level design directory at the end of the config file
ld_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_world_dir=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_dfn_dir=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file_name=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//g' | sed -e 's/ //g' | sed -e 's/=//g'`
cp ../../cfg/properties.cfg zone_lighter_properties.cfg
echo "level_design_directory = \"$ld_dir\";" >> zone_lighter_properties.cfg
echo "level_design_world_directory = \"$ld_world_dir\";" >> zone_lighter_properties.cfg
echo "level_design_dfn_directory = \"$ld_dfn_dir\";" >> zone_lighter_properties.cfg
echo "continent_name = \"$continent_file_name\";" >> zone_lighter_properties.cfg
# List the zones to light
list_zone_welded=`ls -1 ../zone/zone_welded/*.[zZ][oO][nN][eE][wW]`
# create a bkup directory
mkdir bkup_tile_water
# Light zones
for i in $list_zone_welded ; do
dest=`echo $i | sed -e 's&../zone/zone_welded&zone_lighted&g' | sed -e 's/.zonew/.zonel/g'`
depend=`echo $i | sed -e 's&../zone/zone_welded&../zone/zone_depend&g' | sed -e 's/.zonew/.depend/g'`
if ( test -e $dest )
then
echo PATCH $dest
echo PATCH $dest >> log.log
# patch, and bkup if necessary
$exec_timeout $light_timeout $zone_lighter $i $dest zone_lighter_properties.cfg $depend -waterpatch bkup_tile_water
echo
echo
else
echo SKIP $dest cause not found
echo SKIP $dest cause not found >> log.log
fi
# Idle
../../idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# Build zone
zone_lighter='zone_lighter.exe'
zone_ig_lighter='zone_ig_lighter.exe'
exec_timeout='exec_timeout.exe'
# Get the timeout
light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_light_timeout" | sed -e 's/zone_build_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
ig_light_timeout=`cat ../../cfg/config.cfg | grep "zone_build_ig_light_timeout" | sed -e 's/zone_build_ig_light_timeout//' | sed -e 's/ //g' | sed -e 's/=//g'`
# **** Light
# Log error
echo ------- >> log.log
echo --- Zone lighting >> log.log
echo ------- >> log.log
echo -------
echo --- Zone lighting
echo -------
date >> log.log
date
#append the level design directory at the end of the config file
ld_dir=`cat ../../cfg/site.cfg | grep "level_design_directory" | sed -e 's/level_design_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_world_dir=`cat ../../cfg/site.cfg | grep "level_design_world_directory" | sed -e 's/level_design_world_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
ld_dfn_dir=`cat ../../cfg/site.cfg | grep "level_design_dfn_directory" | sed -e 's/level_design_dfn_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
continent_file_name=`cat ../../cfg/config.cfg | grep "continent_file" | sed -e 's/continent_file//g' | sed -e 's/ //g' | sed -e 's/=//g'`
cp ../../cfg/properties.cfg zone_lighter_properties.cfg
echo "level_design_directory = \"$ld_dir\";" >> zone_lighter_properties.cfg
echo "level_design_world_directory = \"$ld_world_dir\";" >> zone_lighter_properties.cfg
echo "level_design_dfn_directory = \"$ld_dfn_dir\";" >> zone_lighter_properties.cfg
echo "continent_name = \"$continent_file_name\";" >> zone_lighter_properties.cfg
# List the zones to light
list_zone_welded=`ls -1 ../zone/zone_welded/*.[zZ][oO][nN][eE][wW]`
# create a bkup directory
mkdir bkup_tile_water
# Light zones
for i in $list_zone_welded ; do
dest=`echo $i | sed -e 's&../zone/zone_welded&zone_lighted&g' | sed -e 's/.zonew/.zonel/g'`
depend=`echo $i | sed -e 's&../zone/zone_welded&../zone/zone_depend&g' | sed -e 's/.zonew/.depend/g'`
if ( test -e $dest )
then
echo PATCH $dest
echo PATCH $dest >> log.log
# patch, and bkup if necessary
$exec_timeout $light_timeout $zone_lighter $i $dest zone_lighter_properties.cfg $depend -waterpatch bkup_tile_water
echo
echo
else
echo SKIP $dest cause not found
echo SKIP $dest cause not found >> log.log
fi
# Idle
../../idle.bat
done

@ -1,33 +1,33 @@
#!/bin/bash
rm log.log 2> /dev/null
# Build the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
date >> log.log
date
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./3_build.bat
# Get back
cd ../..
# Concat log.log files
cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Copy the log file
cp log.log build.log
#!/bin/bash
rm log.log 2> /dev/null
# Build the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
date >> log.log
date
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./3_build.bat
# Get back
cd ../..
# Concat log.log files
cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Copy the log file
cp log.log build.log

@ -1,29 +1,29 @@
#!/bin/bash
rm log.log 2> /dev/null
# Clean the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./1_clean.bat
# Get back
cd ../..
# Concat log.log files
# cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
#!/bin/bash
rm log.log 2> /dev/null
# Clean the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./1_clean.bat
# Get back
cd ../..
# Concat log.log files
# cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done

@ -1,27 +1,27 @@
#!/bin/bash
rm log.log 2> /dev/null
# Clean the client
# Get the client directory
client_directory=`cat cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client setup directories
client_setup_directories=`cat cfg/directories.cfg | grep "client_setup_directory" | sed -e 's/client_setup_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* > log.log
echo \*\*\*\*\*\*\* CLIENT CLEAN>> log.log
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* >> log.log
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
echo \*\*\*\*\*\*\* CLIENT CLEAN
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
# For each directory
for i in $client_setup_directories ; do
# Create the directory
rm $client_directory/$i/*
# Idle
./idle.bat
#!/bin/bash
rm log.log 2> /dev/null
# Clean the client
# Get the client directory
client_directory=`cat cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client setup directories
client_setup_directories=`cat cfg/directories.cfg | grep "client_setup_directory" | sed -e 's/client_setup_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* > log.log
echo \*\*\*\*\*\*\* CLIENT CLEAN>> log.log
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* >> log.log
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
echo \*\*\*\*\*\*\* CLIENT CLEAN
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
# For each directory
for i in $client_setup_directories ; do
# Create the directory
rm $client_directory/$i/*
# Idle
./idle.bat
done

@ -1,24 +1,24 @@
#!/bin/bash
rm log.log 2> /dev/null
# Setup the client
# Get the client directory
client_directory=`cat cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client setup directories
client_setup_directories=`cat cfg/directories.cfg | grep "client_setup_directory" | sed -e 's/client_setup_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo > log.log
# Create the file
# For each directory
for i in $client_setup_directories ; do
# Create the directory
mkdir $client_directory/$i 2> /dev/null
# Idle
./idle.bat
#!/bin/bash
rm log.log 2> /dev/null
# Setup the client
# Get the client directory
client_directory=`cat cfg/site.cfg | grep "client_directory" | sed -e 's/client_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the client setup directories
client_setup_directories=`cat cfg/directories.cfg | grep "client_setup_directory" | sed -e 's/client_setup_directory//' | sed -e 's/ //g' | sed -e 's/=//g'`
# Log error
echo > log.log
# Create the file
# For each directory
for i in $client_setup_directories ; do
# Create the directory
mkdir $client_directory/$i 2> /dev/null
# Idle
./idle.bat
done

@ -1,33 +1,33 @@
#!/bin/bash
rm log.log 2> /dev/null
# Export the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
date >> log.log
date
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./2_export.bat
# Get back
cd ../..
# Concat log.log files
cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Copy the log file
cp log.log export.log
#!/bin/bash
rm log.log 2> /dev/null
# Export the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
date >> log.log
date
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./2_export.bat
# Get back
cd ../..
# Concat log.log files
cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Copy the log file
cp log.log export.log

@ -1,33 +1,33 @@
#!/bin/bash
rm log.log 2> /dev/null
# Install the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
date >> log.log
date
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./4_install.bat
# Get back
cd ../..
# Concat log.log files
cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Copy the log file
cp log.log install.log
#!/bin/bash
rm log.log 2> /dev/null
# Install the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Log error
echo > log.log
date >> log.log
date
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./4_install.bat
# Get back
cd ../..
# Concat log.log files
cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Copy the log file
cp log.log install.log

@ -1,62 +1,62 @@
#!/bin/bash
rm log.log 2> /dev/null
# Setup the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Get the update directory
update_directory=`cat cfg/config.cfg | grep "update_directory" | sed -e 's/update_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Get the database directory
database_directory=`cat cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database letter
database_letter=`cat cfg/site.cfg | grep "database_letter" | sed -e 's/database_letter//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database server
database_server=`cat cfg/site.cfg | grep "database_server" | sed -e 's/database_server//g' | sed -e 's/ //g' | sed -e 's/=//g'`
`cat _idle.bat | sed -e "s&database_directory&$database_directory&g" | sed -e "s&database_letter&$database_letter&g" | sed -e "s&database_server&$database_server&g" > idle.bat`
# Log error
echo > log.log
date >> log.log
date
# Create a bin dir
mkdir bin 2> /dev/null
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./0_setup.bat
# Get back
cd ../..
# Concat log.log files
# cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat cfg/site.cfg | grep "build_quality" | grep "1"`
# Copy the good properties.cfg file
if ( test "$quality_flag" )
then
# We are in BEST mode
echo [Quality] BEST
cp cfg/properties_final.cfg cfg/properties.cfg
else
# We are not DRAFT mode
echo [Quality] DRAFT
cp cfg/properties_draft.cfg cfg/properties.cfg
fi
#!/bin/bash
rm log.log 2> /dev/null
# Setup the processes
# Get the process list
process_to_complete=`cat cfg/config.cfg | grep "process_to_complete" | sed -e 's/process_to_complete//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Get the update directory
update_directory=`cat cfg/config.cfg | grep "update_directory" | sed -e 's/update_directory//' | sed -e 's/ //g' | sed -e 's/=//g' | sed -e 's/,/ /g'`
# Get the database directory
database_directory=`cat cfg/site.cfg | grep "database_directory" | sed -e 's/database_directory//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database letter
database_letter=`cat cfg/site.cfg | grep "database_letter" | sed -e 's/database_letter//g' | sed -e 's/ //g' | sed -e 's/=//g'`
# Get the database server
database_server=`cat cfg/site.cfg | grep "database_server" | sed -e 's/database_server//g' | sed -e 's/ //g' | sed -e 's/=//g'`
`cat _idle.bat | sed -e "s&database_directory&$database_directory&g" | sed -e "s&database_letter&$database_letter&g" | sed -e "s&database_server&$database_server&g" > idle.bat`
# Log error
echo > log.log
date >> log.log
date
# Create a bin dir
mkdir bin 2> /dev/null
# For each process
for i in $process_to_complete ; do
# Open the directory
cd processes/$i
# Excecute the command
./0_setup.bat
# Get back
cd ../..
# Concat log.log files
# cat processes/$i/log.log >> log.log
# Idle
./idle.bat
done
# Get the quality option to choose the goor properties.cfg file
quality_flag=`cat cfg/site.cfg | grep "build_quality" | grep "1"`
# Copy the good properties.cfg file
if ( test "$quality_flag" )
then
# We are in BEST mode
echo [Quality] BEST
cp cfg/properties_final.cfg cfg/properties.cfg
else
# We are not DRAFT mode
echo [Quality] DRAFT
cp cfg/properties_draft.cfg cfg/properties.cfg
fi

@ -65,158 +65,220 @@ if not args.noconf:
except NameError:
BuildQuality = 1
try:
if not args.preset:
ToolDirectories
if args.preset:
DummyUnknownName
RemapLocalFrom
except NameError:
ToolDirectories = [ 'R:/distribution/nel_tools_win_x64-distribution', 'R:/distribution/ryzom_tools_win_x64-distribution' ]
RemapLocalFrom = 'R:'
try:
if args.preset:
DummyUnknownName
RemapLocalTo
except NameError:
RemapLocalTo = os.getenv('RC_ROOT').replace('\\', '/')
if (not RemapLocalTo) or (not ':' in RemapLocalTo):
RemapLocalTo = 'R:'
try:
if args.preset:
DummyUnknownName
ToolDirectories
except NameError:
ToolDirectories = [ 'R:/distribution/nel_tools_win_x64', 'R:/distribution/ryzom_tools_win_x64' ]
try:
ToolSuffix
except NameError:
ToolSuffix = ".exe"
try:
if not args.preset:
ScriptDirectory
if args.preset:
DummyUnknownName
ScriptDirectory
except NameError:
ScriptDirectory = "R:/code/nel/tools/build_gamedata"
try:
if not args.preset:
WorkspaceDirectory
if args.preset:
DummyUnknownName
WorkspaceDirectory
except NameError:
WorkspaceDirectory = "R:/leveldesign/workspace"
try:
if not args.preset:
DatabaseDirectory
if args.preset:
DummyUnknownName
DatabaseDirectory
except NameError:
DatabaseDirectory = "R:/graphics"
try:
if not args.preset:
SoundDirectory
if args.preset:
DummyUnknownName
SoundDirectory
except NameError:
SoundDirectory = "R:/sound"
try:
if not args.preset:
SoundDfnDirectory
if args.preset:
DummyUnknownName
SoundDfnDirectory
except NameError:
SoundDfnDirectory = "R:/sound/DFN"
try:
if not args.preset:
ExportBuildDirectory
if args.preset:
DummyUnknownName
ExportBuildDirectory
except NameError:
ExportBuildDirectory = "R:/pipeline/export"
try:
if not args.preset:
InstallDirectory
if args.preset:
DummyUnknownName
InstallDirectory
except NameError:
InstallDirectory = "R:/pipeline/install"
try:
if not args.preset:
ClientDevDirectory
if args.preset:
DummyUnknownName
ClientDevDirectory
except NameError:
ClientDevDirectory = "R:/pipeline/client_dev"
try:
if not args.preset:
ClientPatchDirectory
if args.preset:
DummyUnknownName
ClientDevLiveDirectory
except NameError:
ClientDevLiveDirectory = "R:/pipeline/client_dev_live"
try:
if args.preset:
DummyUnknownName
ClientPatchDirectory
except NameError:
ClientPatchDirectory = "R:/pipeline/client_patch"
try:
if not args.preset:
ClientInstallDirectory
if args.preset:
DummyUnknownName
ClientInstallDirectory
except NameError:
ClientInstallDirectory = "R:/pipeline/client_install"
try:
if not args.preset:
ShardInstallDirectory
if args.preset:
DummyUnknownName
ShardInstallDirectory
except NameError:
ShardInstallDirectory = "R:/pipeline/shard"
try:
if not args.preset:
WorldEditInstallDirectory
if args.preset:
DummyUnknownName
ShardDevDirectory
except NameError:
ShardDevDirectory = "R:/pipeline/shard_dev"
try:
if args.preset:
DummyUnknownName
WorldEditInstallDirectory
except NameError:
WorldEditInstallDirectory = "R:/pipeline/worldedit"
try:
if not args.preset:
WorldEditorFilesDirectory
if args.preset:
DummyUnknownName
WorldEditorFilesDirectory
except NameError:
WorldEditorFilesDirectory = "R:/code/ryzom/common/data_leveldesign/leveldesign/world_editor_files"
try:
if not args.preset:
LeveldesignDirectory
if args.preset:
DummyUnknownName
LeveldesignDirectory
except NameError:
LeveldesignDirectory = "R:/leveldesign"
try:
if not args.preset:
LeveldesignDfnDirectory
if args.preset:
DummyUnknownName
LeveldesignDfnDirectory
except NameError:
LeveldesignDfnDirectory = "R:/leveldesign/DFN"
try:
if not args.preset:
LeveldesignWorldDirectory
if args.preset:
DummyUnknownName
LeveldesignWorldDirectory
except NameError:
LeveldesignWorldDirectory = "R:/leveldesign/world"
try:
if not args.preset:
PrimitivesDirectory
if args.preset:
DummyUnknownName
PrimitivesDirectory
except NameError:
PrimitivesDirectory = "R:/leveldesign/primitives"
try:
if not args.preset:
LeveldesignDataCommonDirectory
if args.preset:
DummyUnknownName
LeveldesignDataCommonDirectory
except NameError:
LeveldesignDataCommonDirectory = "R:/leveldesign/common"
try:
if not args.preset:
LeveldesignDataShardDirectory
if args.preset:
DummyUnknownName
LeveldesignDataShardDirectory
except NameError:
LeveldesignDataShardDirectory = "R:/leveldesign/shard"
try:
if not args.preset:
TranslationDirectory
if args.preset:
DummyUnknownName
TranslationDirectory
except NameError:
TranslationDirectory = "R:/leveldesign/translation"
try:
if not args.preset:
GamedevDirectory
if args.preset:
DummyUnknownName
GamedevDirectory
except NameError:
GamedevDirectory = "R:/code/ryzom/client/data/gamedev"
try:
if not args.preset:
DataCommonDirectory
if args.preset:
DummyUnknownName
DataCommonDirectory
except NameError:
DataCommonDirectory = "R:/code/ryzom/common/data_common"
try:
if not args.preset:
DataShardDirectory
if args.preset:
DummyUnknownName
DataShardDirectory
except NameError:
DataShardDirectory = "R:/code/ryzom/server/data_shard"
try:
if not args.preset:
WindowsExeDllCfgDirectories
if args.preset:
DummyUnknownName
WindowsExeDllCfgDirectories
except NameError:
# TODO: Separate 64bit and 32bit
WindowsExeDllCfgDirectories = [ '', 'R:/build/fv_x64/bin/Release', 'R:/distribution/external_x64', 'R:/code/ryzom/client', '', '', '' ]
try:
if not args.preset:
LinuxServiceExecutableDirectory
if args.preset:
DummyUnknownName
LinuxServiceExecutableDirectory
except NameError:
LinuxServiceExecutableDirectory = "R:/build/server_gcc/bin"
try:
if args.preset:
DummyUnknownName
LinuxClientExecutableDirectory
except NameError:
LinuxServiceExecutableDirectory = "R:/build/gcc_server/bin"
LinuxClientExecutableDirectory = "R:/build/client_gcc/bin"
try:
if not args.preset:
LinuxClientExecutableDirectory
if args.preset:
DummyUnknownName
PatchmanDevDirectory
except NameError:
LinuxClientExecutableDirectory = "R:/build/gcc_client/bin"
PatchmanDevDirectory = "R:/patchman/terminal_dev"
try:
if not args.preset:
PatchmanCfgAdminDirectory
if args.preset:
DummyUnknownName
PatchmanCfgAdminDirectory
except NameError:
PatchmanCfgAdminDirectory = "R:/patchman/admin_install"
try:
if not args.preset:
PatchmanCfgDefaultDirectory
if args.preset:
DummyUnknownName
PatchmanCfgDefaultDirectory
except NameError:
PatchmanCfgDefaultDirectory = "R:/patchman/default"
try:
if not args.preset:
PatchmanBridgeServerDirectory
if args.preset:
DummyUnknownName
PatchmanBridgeServerDirectory
except NameError:
PatchmanBridgeServerDirectory = "R:/pipeline/bridge_server"
try:
@ -276,9 +338,11 @@ if not args.noconf:
ExportBuildDirectory = askVar(log, "[OUT] Export Build Directory", ExportBuildDirectory).replace("\\", "/")
InstallDirectory = askVar(log, "[OUT] Install Directory", InstallDirectory).replace("\\", "/")
ClientDevDirectory = askVar(log, "[OUT] Client Dev Directory", ClientDevDirectory).replace("\\", "/")
ClientDevLiveDirectory = askVar(log, "[OUT] Client Dev Live Directory", ClientDevLiveDirectory).replace("\\", "/")
ClientPatchDirectory = askVar(log, "[OUT] Client Patch Directory", ClientPatchDirectory).replace("\\", "/")
ClientInstallDirectory = askVar(log, "[OUT] Client Install Directory", ClientInstallDirectory).replace("\\", "/")
ShardInstallDirectory = askVar(log, "[OUT] Shard Data Install Directory", ShardInstallDirectory).replace("\\", "/")
ShardDevDirectory = askVar(log, "[OUT] Shard Dev Directory", ShardDevDirectory).replace("\\", "/")
WorldEditInstallDirectory = askVar(log, "[OUT] World Edit Data Install Directory", WorldEditInstallDirectory).replace("\\", "/")
LeveldesignDirectory = askVar(log, "[IN] Leveldesign Directory", LeveldesignDirectory).replace("\\", "/")
LeveldesignDfnDirectory = askVar(log, "[IN] Leveldesign DFN Directory", LeveldesignDfnDirectory).replace("\\", "/")
@ -300,6 +364,7 @@ if not args.noconf:
WindowsExeDllCfgDirectories[6] = askVar(log, "[IN] Septenary Windows exe/dll/cfg Directory", WindowsExeDllCfgDirectories[6]).replace("\\", "/")
LinuxServiceExecutableDirectory = askVar(log, "[IN] Linux Service Executable Directory", LinuxServiceExecutableDirectory).replace("\\", "/")
LinuxClientExecutableDirectory = askVar(log, "[IN] Linux Client Executable Directory", LinuxClientExecutableDirectory).replace("\\", "/")
PatchmanDevDirectory = askVar(log, "[IN] Patchman Directory", PatchmanDevDirectory).replace("\\", "/")
PatchmanCfgAdminDirectory = askVar(log, "[IN] Patchman Cfg Admin Directory", PatchmanCfgAdminDirectory).replace("\\", "/")
PatchmanCfgDefaultDirectory = askVar(log, "[IN] Patchman Cfg Default Directory", PatchmanCfgDefaultDirectory).replace("\\", "/")
PatchmanBridgeServerDirectory = askVar(log, "[OUT] Patchman Bridge Server Patch Directory", PatchmanBridgeServerDirectory).replace("\\", "/")
@ -350,6 +415,9 @@ if not args.noconf:
sf.write("# Quality option for this site (1 for BEST, 0 for DRAFT)\n")
sf.write("BuildQuality = " + str(BuildQuality) + "\n")
sf.write("\n")
sf.write("RemapLocalFrom = \"" + str(RemapLocalFrom) + "\"\n")
sf.write("RemapLocalTo = \"" + str(RemapLocalTo) + "\"\n")
sf.write("\n")
sf.write("ToolDirectories = " + str(ToolDirectories) + "\n")
sf.write("ToolSuffix = \"" + str(ToolSuffix) + "\"\n")
sf.write("\n")
@ -366,9 +434,11 @@ if not args.noconf:
sf.write("# Install directories\n")
sf.write("InstallDirectory = \"" + str(InstallDirectory) + "\"\n")
sf.write("ClientDevDirectory = \"" + str(ClientDevDirectory) + "\"\n")
sf.write("ClientDevLiveDirectory = \"" + str(ClientDevLiveDirectory) + "\"\n")
sf.write("ClientPatchDirectory = \"" + str(ClientPatchDirectory) + "\"\n")
sf.write("ClientInstallDirectory = \"" + str(ClientInstallDirectory) + "\"\n")
sf.write("ShardInstallDirectory = \"" + str(ShardInstallDirectory) + "\"\n")
sf.write("ShardDevDirectory = \"" + str(ShardDevDirectory) + "\"\n")
sf.write("WorldEditInstallDirectory = \"" + str(WorldEditInstallDirectory) + "\"\n")
sf.write("\n")
sf.write("# Utility directories\n")
@ -390,6 +460,7 @@ if not args.noconf:
sf.write("WindowsExeDllCfgDirectories = " + str(WindowsExeDllCfgDirectories) + "\n")
sf.write("LinuxServiceExecutableDirectory = \"" + str(LinuxServiceExecutableDirectory) + "\"\n")
sf.write("LinuxClientExecutableDirectory = \"" + str(LinuxClientExecutableDirectory) + "\"\n")
sf.write("PatchmanDevDirectory = \"" + str(PatchmanDevDirectory) + "\"\n")
sf.write("PatchmanCfgAdminDirectory = \"" + str(PatchmanCfgAdminDirectory) + "\"\n")
sf.write("PatchmanCfgDefaultDirectory = \"" + str(PatchmanCfgDefaultDirectory) + "\"\n")
sf.write("PatchmanBridgeServerDirectory = \"" + str(PatchmanBridgeServerDirectory) + "\"\n")
@ -407,8 +478,18 @@ if not args.noconf:
sf.write("\n")
sf.write("\n")
sf.write("# end of file\n")
sf.flush()
sf.close()
sf = open("configuration/buildsite_local.py", "w")
sfr = open("configuration/buildsite.py", "r")
for l in sfr:
sf.write(l.replace(RemapLocalFrom + '/', RemapLocalTo + '/'))
sf.flush()
sfr.close()
sf.close()
from buildsite_local import *
sys.path.append(WorkspaceDirectory)
from projects import *
@ -448,6 +529,7 @@ printLog(log, "")
# Additional directories
printLog(log, ">>> Setup additional directories <<<")
mkPath(log, ClientDevDirectory)
mkPath(log, ClientDevLiveDirectory)
mkPath(log, ClientPatchDirectory)
mkPath(log, ClientInstallDirectory)
@ -503,6 +585,7 @@ if not args.noverify:
findTool(log, ToolDirectories, TranslationToolsTool, ToolSuffix)
findTool(log, ToolDirectories, BuildWorldPackedColTool, ToolSuffix)
findTool(log, ToolDirectories, R2IslandsTexturesTool, ToolSuffix)
findTool(log, ToolDirectories, PatchmanServiceTool, ToolSuffix)
log.close()
if os.path.isfile("0_setup.log"):

@ -1,94 +1,94 @@
#!/usr/bin/python
#
# \file 1_export.py
# \brief Run all export processes
# \date 2009-02-18 09:22GMT
# \author Jan Boon (Kaetemi)
# Python port of game data build pipeline.
# Run all export processes
#
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
# Copyright (C) 2009-2014 by authors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
sys.path.append("configuration")
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Export')
# parser.add_argument('--haltonerror', '-eh', action='store_true')
parser.add_argument('--includeproject', '-ipj', nargs='+')
parser.add_argument('--excludeproject', '-epj', nargs='+')
parser.add_argument('--includeprocess', '-ipc', nargs='+')
parser.add_argument('--excludeprocess', '-epc', nargs='+')
args = parser.parse_args()
if not args.includeproject == None and not args.excludeproject == None:
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
exit()
if not args.includeprocess == None and not args.excludeprocess == None:
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
exit()
if os.path.isfile("log.log"):
os.remove("log.log")
log = open("log.log", "w")
from scripts import *
from buildsite_local import *
from tools import *
sys.path.append(WorkspaceDirectory)
from projects import *
# Log error
printLog(log, "")
printLog(log, "-------")
printLog(log, "--- Run the export processes")
printLog(log, "-------")
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
printLog(log, "")
# For each project
for projectName in ProjectsToProcess:
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
printLog(log, "PROJECT " + projectName)
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
os.chdir("processes")
try:
if not args.includeprocess == None:
subprocess.call([ "python", "1_export.py", "--includeprocess" ] + args.includeprocess)
elif not args.excludeprocess == None:
subprocess.call([ "python", "1_export.py", "--excludeprocess" ] + args.excludeprocess)
else:
subprocess.call([ "python", "1_export.py" ])
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
os.chdir("..")
try:
projectLog = open("processes/log.log", "r")
projectLogData = projectLog.read()
projectLog.close()
log.write(projectLogData)
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
else:
printLog(log, "IGNORE PROJECT " + projectName)
printLog(log, "")
log.close()
if os.path.isfile("1_export.log"):
os.remove("1_export.log")
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_export.log")
shutil.move("log.log", "1_export.log")
#!/usr/bin/python
#
# \file 1_export.py
# \brief Run all export processes
# \date 2009-02-18 09:22GMT
# \author Jan Boon (Kaetemi)
# Python port of game data build pipeline.
# Run all export processes
#
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
# Copyright (C) 2009-2014 by authors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
sys.path.append("configuration")
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Export')
# parser.add_argument('--haltonerror', '-eh', action='store_true')
parser.add_argument('--includeproject', '-ipj', nargs='+')
parser.add_argument('--excludeproject', '-epj', nargs='+')
parser.add_argument('--includeprocess', '-ipc', nargs='+')
parser.add_argument('--excludeprocess', '-epc', nargs='+')
args = parser.parse_args()
if not args.includeproject == None and not args.excludeproject == None:
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
exit()
if not args.includeprocess == None and not args.excludeprocess == None:
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
exit()
if os.path.isfile("log.log"):
os.remove("log.log")
log = open("log.log", "w")
from scripts import *
from buildsite_local import *
from tools import *
sys.path.append(WorkspaceDirectory)
from projects import *
# Log error
printLog(log, "")
printLog(log, "-------")
printLog(log, "--- Run the export processes")
printLog(log, "-------")
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
printLog(log, "")
# For each project
for projectName in ProjectsToProcess:
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
printLog(log, "PROJECT " + projectName)
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
os.chdir("processes")
try:
if not args.includeprocess == None:
subprocess.call([ "python", "1_export.py", "--includeprocess" ] + args.includeprocess)
elif not args.excludeprocess == None:
subprocess.call([ "python", "1_export.py", "--excludeprocess" ] + args.excludeprocess)
else:
subprocess.call([ "python", "1_export.py" ])
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
os.chdir("..")
try:
projectLog = open("processes/log.log", "r")
projectLogData = projectLog.read()
projectLog.close()
log.write(projectLogData)
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
else:
printLog(log, "IGNORE PROJECT " + projectName)
printLog(log, "")
log.close()
if os.path.isfile("1_export.log"):
os.remove("1_export.log")
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_export.log")
shutil.move("log.log", "1_export.log")

@ -1,94 +1,94 @@
#!/usr/bin/python
#
# \file 2_build.py
# \brief Run all build processes
# \date 2009-02-18 09:22GMT
# \author Jan Boon (Kaetemi)
# Python port of game data build pipeline.
# Run all build processes
#
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
# Copyright (C) 2009-2014 by authors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
sys.path.append("configuration")
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Build')
# parser.add_argument('--haltonerror', '-eh', action='store_true')
parser.add_argument('--includeproject', '-ipj', nargs='+')
parser.add_argument('--excludeproject', '-epj', nargs='+')
parser.add_argument('--includeprocess', '-ipc', nargs='+')
parser.add_argument('--excludeprocess', '-epc', nargs='+')
args = parser.parse_args()
if not args.includeproject == None and not args.excludeproject == None:
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
exit()
if not args.includeprocess == None and not args.excludeprocess == None:
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
exit()
if os.path.isfile("log.log"):
os.remove("log.log")
log = open("log.log", "w")
from scripts import *
from buildsite_local import *
from tools import *
sys.path.append(WorkspaceDirectory)
from projects import *
# Log error
printLog(log, "")
printLog(log, "-------")
printLog(log, "--- Run the build processes")
printLog(log, "-------")
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
printLog(log, "")
# For each project
for projectName in ProjectsToProcess:
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
printLog(log, "PROJECT " + projectName)
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
os.chdir("processes")
try:
if not args.includeprocess == None:
subprocess.call([ "python", "2_build.py", "--includeprocess" ] + args.includeprocess)
elif not args.excludeprocess == None:
subprocess.call([ "python", "2_build.py", "--excludeprocess" ] + args.excludeprocess)
else:
subprocess.call([ "python", "2_build.py" ])
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
os.chdir("..")
try:
projectLog = open("processes/log.log", "r")
projectLogData = projectLog.read()
projectLog.close()
log.write(projectLogData)
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
else:
printLog(log, "IGNORE PROJECT " + projectName)
printLog(log, "")
log.close()
if os.path.isfile("2_build.log"):
os.remove("2_build.log")
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_build.log")
shutil.move("log.log", "2_build.log")
#!/usr/bin/python
#
# \file 2_build.py
# \brief Run all build processes
# \date 2009-02-18 09:22GMT
# \author Jan Boon (Kaetemi)
# Python port of game data build pipeline.
# Run all build processes
#
# NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
# Copyright (C) 2009-2014 by authors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import time, sys, os, shutil, subprocess, distutils.dir_util, argparse
sys.path.append("configuration")
parser = argparse.ArgumentParser(description='Ryzom Core - Build Gamedata - Build')
# parser.add_argument('--haltonerror', '-eh', action='store_true')
parser.add_argument('--includeproject', '-ipj', nargs='+')
parser.add_argument('--excludeproject', '-epj', nargs='+')
parser.add_argument('--includeprocess', '-ipc', nargs='+')
parser.add_argument('--excludeprocess', '-epc', nargs='+')
args = parser.parse_args()
if not args.includeproject == None and not args.excludeproject == None:
print "ERROR --includeproject cannot be combined with --excludeproject, exit."
exit()
if not args.includeprocess == None and not args.excludeprocess == None:
print "ERROR --includeprocess cannot be combined with --excludeprocess, exit."
exit()
if os.path.isfile("log.log"):
os.remove("log.log")
log = open("log.log", "w")
from scripts import *
from buildsite_local import *
from tools import *
sys.path.append(WorkspaceDirectory)
from projects import *
# Log error
printLog(log, "")
printLog(log, "-------")
printLog(log, "--- Run the build processes")
printLog(log, "-------")
printLog(log, time.strftime("%Y-%m-%d %H:%MGMT", time.gmtime(time.time())))
printLog(log, "")
# For each project
for projectName in ProjectsToProcess:
if ((args.includeproject == None or projectName in args.includeproject) and (args.excludeproject == None or not projectName in args.excludeproject)):
printLog(log, "PROJECT " + projectName)
os.putenv("NELBUILDACTIVEPROJECT", os.path.abspath(WorkspaceDirectory + "/" + projectName))
os.chdir("processes")
try:
if not args.includeprocess == None:
subprocess.call([ "python", "2_build.py", "--includeprocess" ] + args.includeprocess)
elif not args.excludeprocess == None:
subprocess.call([ "python", "2_build.py", "--excludeprocess" ] + args.excludeprocess)
else:
subprocess.call([ "python", "2_build.py" ])
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
os.chdir("..")
try:
projectLog = open("processes/log.log", "r")
projectLogData = projectLog.read()
projectLog.close()
log.write(projectLogData)
except Exception, e:
printLog(log, "<" + projectName + "> " + str(e))
else:
printLog(log, "IGNORE PROJECT " + projectName)
printLog(log, "")
log.close()
if os.path.isfile("2_build.log"):
os.remove("2_build.log")
shutil.copy("log.log", time.strftime("%Y-%m-%d-%H-%M-GMT", time.gmtime(time.time())) + "_build.log")
shutil.move("log.log", "2_build.log")

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save