If you like the game and can afford to, please donate to support MegaGlest.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
<?xml version="1.0" standalone="yes" ?>
<scenario>
<difficulty value="3"/>
<players>
<player control="human" faction="tech" team="1"/>
<player control="cpu" faction="tech" team="1"/>
<player control="cpu" faction="tech" team="1"/>
<player control="cpu" faction="tech" team="1"/>
</players>
<map value="in_the_forest"/>
<tileset value="forest"/>
<tech-tree value="megapack"/>
<default-resources value="false"/>
<default-units value="false"/>
<default-victory-conditions value="true"/>
<scripts>
<startup>
--disable AI
disableAi(1)
disableAi(2)
disableAi(3)
disableHunger(0)
age = 37
you = 17
DisplayFormattedText('I am %s years old. You are %s', age, you)
for i=0, 3 do
print( 'Is AI enabled for faction index: ' .. i .. ', ' .. tostring( getAiEnabled(i)) )
print( 'Is hunger enabled for faction index: ' .. i .. ', ' .. tostring( getHungerEnabled(i)) )
end
startPerformanceTimer()
--allied units
--createUnit('farm', 0, startLocation(2))
createUnit('castle', 1, startLocation(2))
castleUnit= lastCreatedUnit()
createUnit('worker', 1, startLocation(2))
for i=1, 5 do
createUnit('swordman', 1, startLocation(2))
end
giveResource('gold', 0, 1000);
giveResource('wood', 0, 1000);
giveResource('food', 0, 1000);
giveResource('food', 1, 5);
--player units
createUnit('battle_machine', 0, startLocation(2))
battle_machine= lastCreatedUnit()
createUnit('guard', 0, startLocation(2))
guard= lastCreatedUnit()
for i=1, 3 do
createUnit('archer', 0, startLocation(2))
giveAttackCommand(lastCreatedUnit(), castleUnit)
end
for i=1, 10 do
createUnit('swordman', 0, startLocation(1))
givePositionCommand(lastCreatedUnit(), 'attack', startLocation(1))
end
cell_event1 = registerCellTriggerEventForUnitToUnit(guard,castleUnit)
print( 'cell_event1 = ' .. cell_event1 )
timer_event1 = startTimerEvent()
print( 'timer_event1 = ' .. timer_event1 )
</startup>
<unitCreated>
</unitCreated>
<unitDied>
enableHunger(0)
enableAi(1)
for i=0, 3 do
print( 'Is AI enabled for faction index: ' .. i .. ', ' .. tostring( getAiEnabled(i)) )
print( 'Is hunger enabled for faction index: ' .. i .. ', ' .. tostring( getHungerEnabled(i)) )
end
endPerformanceTimer()
clearDisplayText()
setDisplayText(string.format('Performance, updateFPS: %d, RenderFPS: %d', getPerformanceTimerResults()[1],getPerformanceTimerResults()[2]))
</unitDied>
<cellTriggerEvent>
--print('Cell Event ' .. triggeredCellEventId() )
print( 'In cell event triggeredCellEventId = ' .. triggeredCellEventId() .. ' cell_event1 = ' .. cell_event1 )
if triggeredCellEventId() == cell_event1 then
clearDisplayText()
setDisplayText('You captured the FLAG!')
end
</cellTriggerEvent>
<timerTriggerEvent>
--print('Timer Event ' .. triggeredTimerEventId() )
--print( 'In timer event triggeredTimerEventId = ' .. triggeredTimerEventId() .. ' timer_event1 = ' .. timer_event1 )
if triggeredTimerEventId() == timer_event1 then
if timerEventSecondsElapsed(triggeredTimerEventId()) >= 7 then
print( 'In timer event triggeredTimerEventId = ' .. triggeredTimerEventId() .. ' timer_event1 = ' .. timer_event1 .. ' seconds elapsed = ' .. timerEventSecondsElapsed(triggeredTimerEventId()) )
clearDisplayText()
setDisplayText('Timer 1 triggered!')
stopTimerEvent(timer_event1)
end
end
</timerTriggerEvent>
</scripts>
</scenario>
./glest.bin --validate-techtrees
Checking techPath [techs] techName [megapack] factionsList.size() = 6
Found faction [egypt]
Found faction [indian]
Found faction [magic]
Found faction [norsemen]
Found faction [persian]
Found faction [tech]
Errors were detected:
=====================
The Unit [archer] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [crossbow] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [flyingvalkyrie] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [spearman] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [spearman_berzerk] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [swordman] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Unit [swordman_berzerk] in Faction [norsemen] has the command [hold_position]
which has upgrade requirement [training_field] but there are no units able to perform the upgrade!
The Upgrade Type [training_field] in Faction [norsemen] has no Unit able to produce this upgrade in this faction!
=====================
Checking resources, count = 6
Found techtree resource [energy]
Found techtree resource [food]
Found techtree resource [gold]
Found techtree resource [housing]
Found techtree resource [stone]
Found techtree resource [wood]
Checking techPath [mydata/techs] techName [game_12] factionsList.size() = 6
Found faction [PC]
Found faction [britan]
Found faction [martians]
Found faction [moon]
Found faction [persian]
Found faction [romans]
Errors were detected:
=====================
The Unit [led] in Faction [PC] has no other units that can produce, build or morph into it in this faction!
The Unit [fallen_capsule] in Faction [martians] has no other units that can produce, build or morph into it in this faction!
The Upgrade Type [advanced_architecture] in Faction [romans] has no Unit able to produce this upgrade in this faction!
=====================
Checking resources, count = 11
Found techtree resource [detirium]
Found techtree resource [energy]
Found techtree resource [fish]
Found techtree resource [food]
Found techtree resource [gold]
Found techtree resource [housing]
Found techtree resource [hp]
Found techtree resource [memory]
Found techtree resource [stone]
Found techtree resource [water]
Found techtree resource [wood]
AND when the XML is bad....
******************************************************
#2 An error ocurred and Glest will close.
Error msg = [Error loading Faction Types: techs/megapack
Error loading units: techs/megapack/factions/tech
Error loading UnitType: techs/megapack/factions/tech/units/blacksmith/blacksmith.xml
The string "castleX" contains a character that is not allowed: "X"
For portability reasons the only allowed characters in this field are: abcdefghijklmnopqrstuvwxyz1234567890._-/]
Please report this bug to contact_game@glest.org, attaching the generated glestv3.3.5.1-alpha3.dmp file.
******************************************************
DEFAULT_HTTP_TIMEOUT=10x.x.x, platform, problem summaryQuotesvn co https://megaglest.svn.sourceforge.net/svnroot/megaglest megaglest

./autogen.sh
./configure
jam#megaglest_release_folder="trunk"
megaglest_release_folder="release-3.3.5.1"
[url=http://sourceforge.net/projects/megaglest/files/megaglest3.2.4-2-beta5_i386_win32_bin.7z/download]http://sourceforge.net/projects/megaglest/files/megaglest3.2.4-2-beta5_i386_win32_bin.7z/download[/url][url=http://dl.dropbox.com/u/5207065/Glest%20Files/MegaGlest/MegaGlest_3.2.4-BETA4_Install.exe]Click here to download new windows full installer![/url] of this version.
Page created in 0.049 seconds with 17 queries.