Page 1 of 1

Ackaly trouble

Posted: Mon Jul 30, 2007 5:26 pm
by GolfBulb
my acklay isnt showing up, Here is part of the lua:

ReadDataFile("SIDE\\geo.lvl",
"geo_inf_acklay"
"gen_inf_geonosian")

ReadDataFile("dc:SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = **,
reinforcements = ***,
soldier = { "rep_inf_ep2_rifleman",*, *},
assault = { "rep_inf_ep2_rocketeer",*, *},
engineer = { "rep_inf_ep2_engineer",*, *},
sniper = { "rep_inf_ep2_sniper",*, *},
officer = {"rep_inf_ep3_officer",*, *},
special = { "rep_inf_ep2_jettrooper",*, *},

},
cis = {
team = CIS,
units = **,
reinforcements = ***,
soldier = { "cis_inf_bdroid",*, *},
assault = { "cis_inf_rifleman",*, *},
engineer = { "geo_inf_geonosian",*, *},
sniper = { "cis_inf_sniper",*, *},
officer = {"geo_inf_acklay",*, *},
special = { "cis_inf_droideka",*, *},

I put the *'s because its a suprise ;) it makes sense for the map im making, ANy help is..Helpful :D

RE: Ackaly trouble

Posted: Mon Jul 30, 2007 6:07 pm
by Master Fionwë
What does the error log say? Also, you need to have a memory pool set for acklays. AcklayData

Re: RE: Ackaly trouble

Posted: Mon Jul 30, 2007 6:10 pm
by GolfBulb
Master Fionwë wrote:What does the error log say? Also, you need to have a memory pool set for acklays. AcklayData
can u explain the "pool" please

And here is my log:

C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\DDW\DDWc_con.lua:96: `)' expected (to close `(' at line 94) near `"gen_inf_geonosian"'
ERROR[scriptmunge scripts\DDW\DDWc_con.lua]:Could not read input file.ERROR[scriptmunge scripts\DDW\DDWc_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings

ERROR[localizemunge japanese.cfg]:Text file syntax error. (No matching bracket)ERROR[localizemunge japanese.cfg]:Text file syntax error. (No matching bracket) [continuing]
2 Errors 0 Warnings

ERROR[levelpack mission\DDWc_con.req]:Expecting bracket, but none was found.
File : munged\pc\ddwc_con.script.req(1)...

ucft <--
ERROR[levelpack mission\DDWc_con.req]:Expecting bracket, but none was found.
File : munged\pc\ddwc_con.script.req(1)...

ucft <--

2 Errors 0 Warnings

RE: Re: RE: Ackaly trouble

Posted: Mon Jul 30, 2007 7:41 pm
by Master Fionwë
Okay, well obviously you have an error near the geonosian loading part. Make sure everything is right there. The memory pool sets a, well, memory pool for certain things. It tells the game/computer how much memory it needs to set aside for that thing. Having a more important one too low will cause a crash. Acklays are one of those. UnitAgent is another. Look at the shipped luas for examples of different memory pools.

Re: RE: Re: RE: Ackaly trouble

Posted: Mon Jul 30, 2007 8:19 pm
by GolfBulb
Master Fionwë wrote:Okay, well obviously you have an error near the geonosian loading part. Make sure everything is right there. The memory pool sets a, well, memory pool for certain things. It tells the game/computer how much memory it needs to set aside for that thing. Having a more important one too low will cause a crash. Acklays are one of those. UnitAgent is another. Look at the shipped luas for examples of different memory pools.
Uhh still not sure

Posted: Mon Jul 30, 2007 9:29 pm
by B94
U need a comma after the Acklay, simple as that

ReadDataFile("SIDE\\geo.lvl",
"geo_inf_acklay",
"gen_inf_geonosian")

ReadDataFile("dc:SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = **,
reinforcements = ***,
soldier = { "rep_inf_ep2_rifleman",*, *},
assault = { "rep_inf_ep2_rocketeer",*, *},
engineer = { "rep_inf_ep2_engineer",*, *},
sniper = { "rep_inf_ep2_sniper",*, *},
officer = {"rep_inf_ep3_officer",*, *},
special = { "rep_inf_ep2_jettrooper",*, *},

},
cis = {
team = CIS,
units = **,
reinforcements = ***,
soldier = { "cis_inf_bdroid",*, *},
assault = { "cis_inf_rifleman",*, *},
engineer = { "geo_inf_geonosian",*, *},
sniper = { "cis_inf_sniper",*, *},
officer = {"geo_inf_acklay",*, *},
special = { "cis_inf_droideka",*, *},