Mapping 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
Kaos4
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Tue Sep 06, 2005 8:19 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Mapping Help.

Post by Kaos4 »

Q!: I try to use GIMP to open the tga's, but whenever I open them the skin is convered in a grey checkerboard, is there a way to get rid of this? And to create a skin do I just have to edit the tga, or do i need to edit the msh?
Q2: For my map: Both sides have their own command posts (red and blue cps show up on the map), but the Empire never spawns. I tired to play as them, it wouldn't even let me spawn. The empire's ATAT doesn't spawn either. I think it is a lua problem but I am not sure. Does anyone know a good solution?
Q3: I put in the capture/control/spawn path/regions on my map, but I am still unable to capture cp's. Why?
Moving_Target
Master Bounty Hunter
Master Bounty Hunter
Posts: 1670
Joined: Sat Oct 22, 2005 10:16 pm
Location: Here

RE: Mapping Help.

Post by Moving_Target »

Q3 - Select the region and lower it into the ground abit. I'm guessing at the default height it's too high 4 a soldier to enter.
Aussie_Irishman

RE: Mapping Help.

Post by Aussie_Irishman »

perhaps you havent configured the Lua correctly to allow for the Cp's, or perhaps you havent put the right stats in for the actual cp's/capture/control/spawn regions....or thirdly, perhaps you did them on a different layer to the one you are attempting to play....a different layer is a different game mode.

AJay
Kaos4
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Tue Sep 06, 2005 8:19 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Mapping Help.

Post by Kaos4 »

I think everything is correct. I tried to create a skin too. When i munge it says Targa type 10 currently not supported.

EDIT
nvm I fixed the targa problem. I did some reworking and now all units spawn. The cp's are still uncapturable though. What do I need to add to the Lua? Does the vehicle spawn need to be placed IN the cp control region?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

You don't need control regions

Post by AceMastermind »

You don't really need "control regions" unless you want them, but you do need "capture regions" at your CP so that you can capture it.
Kaos4
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Tue Sep 06, 2005 8:19 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 Kaos4 »

If I add a vehicle spawn/ a vehicle (ATAT) How do I define it in the LUA? Do I need to add something to the Lua? Thanks
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Adding an AT-AT to the LUA

Post by AceMastermind »

In your ABCg_con.lua, scroll down to:

ReadDataFile("SIDE\\imp.lvl",
"imp_walk_atat") <=======Add this line


Add the number of walkers you want:

ClearWalkers() <=========uncomment this line, it should look like this
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs) <===AT-ST, AT-RT
AddWalkerType(2, 1) -- 2x2 (2 pairs of legs) <===AT-AT, Spider Walker
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs) <=======ATTE


Add this line under the memory pools:

SetMemoryPoolSize ("CommandWalker", 1) <==========If you have "1" command walker
Kaos4
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Tue Sep 06, 2005 8:19 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 Kaos4 »

That worked. The ATAT doesn't have sounds though. If I delete the Clone era LUA does it make the map gcw only? Thanks for all the help. :D
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post by Hebes24 »

You need to do that, and delete the Clone wars parts of the addme.lua, which is located in data_***\addme (*** = 3 letter Mod ID )
Kaos4
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Tue Sep 06, 2005 8:19 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 Kaos4 »

Hmm.. My CP's are still not working, only the imperial ones aren't working. I think it is a Lua Problem. I have the control and capture regions set up. Here is the spawn section of my Lua.
Hidden/Spoiler:
ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveConquest")

-- Empire Attacking (attacker is always #1)
local ALL = 2
local IMP = 1
-- These variables do not change
local ATT = 1
local DEF = 2

function ScriptPostLoad()

SetProperty("cp1", "Team", "2")
SetProperty("cp2", "Team", "2")
SetProperty("cp3", "Team", "1")
SetProperty("cp4", "Team", "1")

--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}



--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}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)

conquest:Start()

EnableSPHeroRules()

end
Once again i'd like to thank you all for your help and patience :P

EDIT
This is kinda wierd, but...my map was working yesterday, and now when I run it it crashes. I was testing out other maps in my addon folder and Penguin's Tatooine Valley also crashes (it worked before). All my other maps work fine.
Post Reply