Someone with CD Version Please Help

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Someone with CD Version Please Help

Post by [RDH]Zerted »

My map keeps crashing and I think I know why (memorypools), but I could really use an error log. The code is correct, its the problem inside the game that I'm looking for. Could someone with the CD version of the game (I have DVD version :( ) test my map and send me the error log?

The only change I've made that matters is:
units = { "all_inf_rifleman", "all_inf_rocketeer", "all_inf_engineer", "all_inf_sniper", "all_inf_officer", "all_inf_wookiee" }

for number = 1,5 do
for slot = 1,2 do
SetClassProperty( units[number], "WeaponName" .. slot, "all_weap_inf_pistol" )
SetClassProperty( units[number], "WeaponAmmo" .. slot, "0" )
end
end
Please paste this into the lua of a blank map. It goes after the SetupTeams section. The game mode needs to be galactic conquest (g_con). Thanks for any help.

edit: or download the entire map instead: http://galacticbattlefront.rh.rit.edu/m ... Please.zip
Last edited by [RDH]Zerted on Mon Apr 24, 2006 5:58 pm, edited 2 times in total.
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Ace_Azzameen_5 »

There is an interesting program called game jackal. Someone with the CD version could make a profile.

P.S. Don't lock this, the program is legal.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

For those intrested, the above code changes the weapons in slots 1 and 2 of the first five units (all but the wookiee) to that of a pistol with unlimited ammo. It seems to work ok if I only change a few units, but when I change more the game becomes very unstable.

I'm working on the process of making troops completely dynamic. Everyone starts off as a basic unit, then they can upgrade their weapons over time. You could upgrade your unit by going into a locker room and selecting weapons, skins, and armor. Enemy units would drop their weapons instead of health/ammo, so you could also upgrade by stealing enemy weapons. The more weapons and armor you have, the slower you would move.

I can get this to work, the main problem I need to overcome is described in my first post. Anyone want to help me out?
drummerzoid1

Post by drummerzoid1 »

you don't need two "end"s unless they are in different angles

try it like this
for slot = 1,2 do
SetClassProperty( units[number], "WeaponName" .. slot, "all_weap_inf_pistol" )
SetClassProperty( units[number], "WeaponAmmo" .. slot, "0" )
for number = 1,5 do
etClassProperty( units[number], "WeaponName" .. slot, "all_weap_inf_pistol" )
SetClassProperty( units[number], "WeaponAmmo" .. slot, "0" )

also try adding this at the top?
ScriptCB_DoFile("MultiObjectiveContainer")
ScriptCB_DoFile("ObjectiveAssault")
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("ObjectiveGoto")
ScriptCB_DoFile("ObjectiveCTF")
ScriptCB_DoFile("ObjectiveTDM")
ScriptCB_DoFile("Ambush")
ScriptCB_DoFile("setup_teams")
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

"The numeric progression version of for has the following syntax:
for variable = from_exp , to_exp [, step_exp] do block end "
Both ends are required, they are a part of the for loops.

The code is 100% correct. It works good. The problem is the game can't handle 10 pistols. I would like to know the error being generated by the game so I can figure out why it can't handle 10 pistols.

edit: Here is a complete source of the map. I've still been trying to fix it, so the quoted code is slightly different (same general problem though) than what is posted above. The code is correct, I need the error log generated by the game.

Download: http://galacticbattlefront.rh.rit.edu/m ... Please.zip
Post Reply