AI not spawning
Moderator: Moderators
-
ARCTroopaNate
- Jedi

- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
AI not spawning
I changed one my teams reinforcement count to infinite but now the AI are not spawning. The only other change I made before munging was a bit of localizing. This is the error I get. I believe the error stems from the infinite reinforcements. Help would be appreciated.
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to index global `conquest' (a nil value)
stack traceback:
(none): in function `ScriptPostLoad'
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to index global `conquest' (a nil value)
stack traceback:
(none): in function `ScriptPostLoad'
- yuke5
- Field Commander

- Posts: 945
- Joined: Wed Jun 29, 2011 10:42 pm
- xbox live or psn: My steam is yuke5.
- Location: Vermont
Re: AI not spawning
Can you post your LUA please?
-
ARCTroopaNate
- Jedi

- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: AI not spawning
Hidden/Spoiler:
- yuke5
- Field Commander

- Posts: 945
- Joined: Wed Jun 29, 2011 10:42 pm
- xbox live or psn: My steam is yuke5.
- Location: Vermont
Re: AI not spawning
Can you post the entire LUA please? That might shed a little more light.
-
ARCTroopaNate
- Jedi

- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: AI not spawning
Hidden/Spoiler:
- yuke5
- Field Commander

- Posts: 945
- Joined: Wed Jun 29, 2011 10:42 pm
- xbox live or psn: My steam is yuke5.
- Location: Vermont
Re: AI not spawning
AddAIGoal(1, "conquest", 100)
AddAIGoal(2, "conquest", 100)
I think these might be giving you trouble. I'm fairly new at this stuff though, but that is just my best guess. All I'm really going by is the error message, and what your have there pertains directly do the error message. Take out those lines and see if your AI spawn. If they don't, I guess it's fine to put the lines back in. I guess I'd just double check the names of your spawns and what the cp calls them. That's all I can really think of for now. I hope this helps, if not, maybe one of the older and wiser modders can help us out.
AddAIGoal(2, "conquest", 100)
I think these might be giving you trouble. I'm fairly new at this stuff though, but that is just my best guess. All I'm really going by is the error message, and what your have there pertains directly do the error message. Take out those lines and see if your AI spawn. If they don't, I guess it's fine to put the lines back in. I guess I'd just double check the names of your spawns and what the cp calls them. That's all I can really think of for now. I hope this helps, if not, maybe one of the older and wiser modders can help us out.
- SpartanA259
- Captain

- Posts: 498
- Joined: Tue Jul 19, 2011 2:47 pm
- Projects :: Orion City
- xbox live or psn: Steam: [404] Ash
- Location: New Reno, Nevada
Re: AI not spawning
You could also try putting a space between
conquest:Start() and
AddAIGoal(1, "conquest", 100)
conquest:Start() and
AddAIGoal(1, "conquest", 100)
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: AI not spawning
seems like youd did a bit more than change the reinforcements, why did you modify the scriptostloadsection? you dont need these aigoals, they are automatically set through objectiveconquest. furthermore you removed these lines from scriptostload which configure the gamemode:
Code: Select all
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}-
ARCTroopaNate
- Jedi

- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: AI not spawning
It didn't work. The AI still aren't spawning. I can spawn it just seems my AI don't want to.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: AI not spawning
Post your new Lua. Always post it after yo have changed it.
-
ARCTroopaNate
- Jedi

- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: AI not spawning
Hidden/Spoiler:
