Map crashing after editing LUA [Solved]
Moderator: Moderators
- yoyoman
- Corporal

- Posts: 157
- Joined: Tue Jun 29, 2010 7:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Map crashing after editing LUA [Solved]
I was working with my lua's trying to add more units and reinforcements and then munged then I load it gets to the last part of loading then crashes pleas help.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: crashing
post your lua nd your errorlog (the modtools.exe creates) please
- yoyoman
- Corporal

- Posts: 157
- Joined: Tue Jun 29, 2010 7:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: crashing
are you suppose to edit only one
Edit I am meanig the lua
Edit I am meanig the lua
Last edited by yoyoman on Sat Sep 04, 2010 3:30 pm, edited 1 time in total.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: crashing
what?
- yoyoman
- Corporal

- Posts: 157
- Joined: Tue Jun 29, 2010 7:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: crashing
Hidden/Spoiler:
team = CIS,
units = 0,
reinforcements = 2000000000000400, and this part rep = {
and this part team = REP,
units = 0,
reinforcements = 200000000400,
- sim-al2
- 2nd Lieutenant

- Posts: 412
- Joined: Mon Jul 06, 2009 10:26 pm
- Projects :: Mapping on occasion
- Location: In the cockpit of some vehicle...
Re: Map crashing after editing LUA
Well you have zero units, but that number of reinforcements is defintely overloading the game (and would take years to kill off
) try setting it to more conservitive numbers like 50-75 units each side and 2000 reinforcements.
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: Map crashing after editing LUA
First, you really should keep any numbers under 1 million, as I'm pretty sure the engine can't handle anything over 999,999. Secondly, reinforcement counts that high would make for a bad game, as it would take forever to deplete. Even in SWBF1, the max I saw in MP was 2,000, or so, reinforcements, and that was with full servers of at least 32 people with a ton of bots present. That's just beyond rediculous, and into the Ned Flanders. For a big battle in SWBF2, 500-1,000 reinforcements would be more reasonable.
You also have team unit counts of 0 (units = 0), so who are you going to fight if the max units per team at any moment is..oh, I don't know...nothing?
You also have team unit counts of 0 (units = 0), so who are you going to fight if the max units per team at any moment is..oh, I don't know...nothing?
- yoyoman
- Corporal

- Posts: 157
- Joined: Tue Jun 29, 2010 7:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Map crashing after editing LUA
would this be fine 1000 reinforcements and 400 units.
- sim-al2
- 2nd Lieutenant

- Posts: 412
- Joined: Mon Jul 06, 2009 10:26 pm
- Projects :: Mapping on occasion
- Location: In the cockpit of some vehicle...
Re: Map crashing after editing LUA
Less units: that sure is a ton of units and might cause speed issues on slower computers. How big is your map? If it's 128x128 about 75-100 units would fill it pretty well, 150 would work for a 256x256.
-
MrCrayon
- Jedi Knight

- Posts: 554
- Joined: Sat Apr 17, 2010 8:15 pm
- Projects :: Coruscant map Want to help PM me
- Location: Buried in homework, but getting better
Re: Map crashing after editing LUA
Holy COW! That is alot of units. I am pretty sure your map is going to crash if your map is a wee little square with 400 guys all in the camera at once (*achem* Geonosis 1.1.2)
- sim-al2
- 2nd Lieutenant

- Posts: 412
- Joined: Mon Jul 06, 2009 10:26 pm
- Projects :: Mapping on occasion
- Location: In the cockpit of some vehicle...
Re: Map crashing after editing LUA
No it won't actually but it could cause slowdown/random crashes/effects cut out issues.
- yoyoman
- Corporal

- Posts: 157
- Joined: Tue Jun 29, 2010 7:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Map crashing after editing LUA
ya it worked not crashing any more I added to many reinforcements.
