Making a map: Questions

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
Spl1tz
Recruit Womprat Killer
Posts: 7
Joined: Sun Dec 14, 2008 1:53 pm

Making a map: Questions

Post by Spl1tz »

Hi fellow modders!
I'm new to modding/mapping since a couple weeks ago, been reading tutorials and stuff and I'm doing well.
I'm making a Kashyyyk map and i got several problems which i cannot find the tutorial for it.

My problems:

1- My map needs vehicles, i know that vehicles names are in the assets/sides folder. I know in Zero Editor i need to add a vehicle spawn point and a control region in conquest layer, i need to set on which class the vehicles need to spawn to after that i add in the .Lua what vehicles the game must read in order to make them spawn. Did that done that. Results: Only 2 of 8 vehicles spawn. AND i dunno what went wrong :?
Maybe some vehicles don't work??

2- After i know how to add the team's own vehicles on my map, i need to know how to add vehicles from OTHER teams. Like CIS vehicles for Rebels.
I tried experimenting adding this line under:

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"imp_fly_destroyer_dome",
"imp_fly_trooptrans",
"imp_fly_tiebomber_sc",
"imp_walk_atat",
"imp_walk_atst",


ReadDataFiles("SIDE\\cis.lvl"),
"(The vehicle name here)"


In bold is what i added and that didn't work. (btw, tiebomber was the only vehicles that spawned)

Hope you can help :)
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Making a map: Questions

Post by Commander_Fett »

1:So, you added in a capture region with the name refered to in the command post, set its type to capture, then added in a vehicle spawn. Are you sure you gogt the name of the vehicle name right in the vehicle spawn?


ReadDataFiles("SIDE\\cis.lvl"),
"(The vehicle name here)"
You added on an extra "s" there, that would be a problem.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Making a map: Questions

Post by YaNkFaN »

yea the s in sides is the problem also I have the answers to your other errors. For the imp side atsts and atats are walkers there fore you need to edit this line in the script...

AddWalkerType(0, 0) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs) (for the atsts)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs) (for the atats)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)

change the zeroes to whatever number you have in your level. Also for the atats they are command walkers so you need to add this line...

SetMemoryPoolSize("Aimer", 80)
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("CommandWalker", (number of atats))
SetMemoryPoolSize("BaseHint", 1024)

as well as change the team of the vehicle spawn in your level to the team that imp is on (most likely team 1)
this is the same thing you do so that cps have teams

lastly for the troop_trans
this is a command flyer so you need to add
SetMemoryPoolSize("CommandFlyer", (number of troop trans))

hope this helps
Spl1tz
Recruit Womprat Killer
Posts: 7
Joined: Sun Dec 14, 2008 1:53 pm

Re: Making a map: Questions

Post by Spl1tz »

Oh sry, the s was a typo :lol:

I checked the regions name and which cp it belongs, etc etc...
Thx for the reply, the legs part is auto implemented in the script by VisualMunge but i only gotta change the 0 to any number, ok.
I didn't know about these command lines, good to know. Thx, gonna try out. Btw, this is for a testing map not my kashyyyk map, mistake :roll:


Are there any other things i need to know? Like, for all the others vehicles?
If u guys have any link for other vehicles which are not in game would be awesome!

Also the sky, to use one from shipped maps i just need the sky file and rename it to ABC and put it in world1. Correct?

Thankssss!! :D
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Making a map: Questions

Post by YaNkFaN »

umm i'm not sure if visual munge automatically does that but if you say so then i guess it does also about the sky...there are two things you need an actual .tga file as well as a dome file. What i would do is go into the world folder that has the sky you want and search sky. then put all those files in your worlds folder of the level you are making. Also about vehicles there's really nothing else except the walkers that are special..they just need to be called for in the .lua
Spl1tz
Recruit Womprat Killer
Posts: 7
Joined: Sun Dec 14, 2008 1:53 pm

Re: Making a map: Questions

Post by Spl1tz »

Ok it still doesn't work.

this is what i have:

Code: Select all

    ReadDataFile("sound\\tat.lvl;tat2gcw")
    ReadDataFile("SIDE\\all.lvl",
                    "all_inf_rifleman",
                    "all_inf_rocketeer",
                    "all_inf_sniper",
                    "all_inf_engineer",
                    "all_inf_officer",
                    "all_inf_wookiee",
                    "all_hero_hansolo_tat",
[b]                    "all_fly_gunship_sc",
                    "all_fly_kwing",
                    "all_hover_combatspeeder", 
                    "all_fly_correlian_crusier")[/b]
                                       
    ReadDataFile("SIDE\\imp.lvl",
                    "imp_inf_rifleman",
                    "imp_inf_rocketeer",
                    "imp_inf_engineer",
                    "imp_inf_sniper",
                    "imp_inf_officer",
                    "imp_inf_dark_trooper",
                    "imp_hero_bobafett",
                    "imp_fly_destroyer_dome",
[b]                    "imp_fly_trooptrans",
                    "imp_fly_tiebomber_sc",
                    "imp_walk_atat",
                    "imp_walk_atst",
                    "imp_walk_atat_exp",
                    "imp_walk_atst_exp")[/b]

	ReadDataFile("SIDE\\tur.lvl",
						"tur_bldg_tat_barge",	
						"tur_bldg_laser")	
 
	SetupTeams{
		all = {
			team = ALL,
			units = 20,
			reinforcements = 150,
			soldier	= { "all_inf_rifleman",9, 25},
			assault	= { "all_inf_rocketeer",1,4},
			engineer = { "all_inf_engineer",1,4},
			sniper	= { "all_inf_sniper",1,4},
			officer	= { "all_inf_officer",1,4},
			special	= { "all_inf_wookiee",1,4},

		},
		imp = {
			team = IMP,
			units = 20,
			reinforcements = 150,
			soldier	= { "imp_inf_rifleman",9, 25},
			assault	= { "imp_inf_rocketeer",1,4},
			engineer = { "imp_inf_engineer",1,4},
			sniper	= { "imp_inf_sniper",1,4},
			officer	= { "imp_inf_officer",1,4},
			special	= { "imp_inf_dark_trooper",1,4},
		},
	}
    
    SetHeroClass(ALL, "all_hero_hansolo_tat")
    SetHeroClass(IMP, "imp_hero_bobafett")

    --  Level Stats
    ClearWalkers()
[b]    AddWalkerType(0, 2) -- special -> droidekas
    AddWalkerType(1, 2) -- 1x2 (1 pair of legs)
    AddWalkerType(2, 2) -- 2x2 (2 pairs of legs)
    AddWalkerType(3, 2) -- 3x2 (3 pairs of legs)[/b]
    
    local weaponCnt = 1024
    SetMemoryPoolSize("Aimer", 75)
    SetMemoryPoolSize("AmmoCounter", weaponCnt)
[b]    SetMemoryPoolSize("CommandWalker", 5)
    SetMemoryPoolSize("CommandFlyer", 5)[/b]
    SetMemoryPoolSize("BaseHint", 1024)
    SetMemoryPoolSize("EnergyBar", weaponCnt)
	SetMemoryPoolSize("EntityCloth", 32)
	SetMemoryPoolSize("EntityFlyer", 32)
    SetMemoryPoolSize("EntityHover", 32)
    SetMemoryPoolSize("EntityLight", 200)
    SetMemoryPoolSize("EntitySoundStream", 4)
    SetMemoryPoolSize("EntitySoundStatic", 32)
    SetMemoryPoolSize("MountedTurret", 32)
	SetMemoryPoolSize("Navigator", 128)
    SetMemoryPoolSize("Obstacle", 1024)
	SetMemoryPoolSize("PathNode", 1024)
    SetMemoryPoolSize("SoundSpaceRegion", 64)
    SetMemoryPoolSize("TreeGridStack", 1024)
	SetMemoryPoolSize("UnitAgent", 128)
	SetMemoryPoolSize("UnitController", 128)
	SetMemoryPoolSize("Weapon", weaponCnt)
But still, only the tiebomber and combatspeeder spawn.

Then there is this error after munging, dunno if it got anything to do with it...

Code: Select all

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

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

ucft <--

   2 Errors    0 Warnings

ERROR[levelpack shell.req]:Input file shell.req does not exist. [continuing]
   1 Errors    0 Warnings
The "imp_walk_atst" and "imp_walk_atat_exp" was to test both of them.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Making a map: Questions

Post by YaNkFaN »

well the first 2 errors have to do with your .lua not the actual setting up everything in zeroeditor (you probably didn't add a bracket somewhere but i can't exactly say). Also the second may have to do with how you set up your side...you didn't copy the assets shell into the build/shell folder of your level. if you didn't then go to assets/shell and copy all the files except the .reqs and copy them into data_abc/build/shell


Note to people who read this
can someone see whats wrong with the lua???
Spl1tz
Recruit Womprat Killer
Posts: 7
Joined: Sun Dec 14, 2008 1:53 pm

Re: Making a map: Questions

Post by Spl1tz »

YaNkFaN wrote:well the first 2 errors have to do with your .lua not the actual setting up everything in zeroeditor (you probably didn't add a bracket somewhere but i can't exactly say). Also the second may have to do with how you set up your side...you didn't copy the assets shell into the build/shell folder of your level. if you didn't then go to assets/shell and copy all the files except the .reqs and copy them into data_abc/build/shell


Note to people who read this
can someone see whats wrong with the lua???
Actually, my map was totally broken so i remade the map and added 6 of the CIS vehicles and now they all work, the atst, atat, everything except for the corellian frigate and the kwing. :wink:

Thx for the help!

Btw, could i use this thread for my future questions? :)
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Making a map: Questions

Post by AceMastermind »

YaNkFaN wrote:...Also the second may have to do with how you set up your side...you didn't copy the assets shell into the build/shell folder of your level. if you didn't then go to assets/shell and copy all the files except the .reqs and copy them into data_abc/build/shell
No need to do this, he's probably trying to munge with the shell option checked which isn't necessary unless you're actually trying to make a new one.
Also, he's trying to load shipped vehicles which doesn't require making any sides because they're already in the game's side folder.

These aren't vehicles, they're explosion files for the vehicles:
imp_walk_atat_exp
imp_walk_atst_exp

Have a look at the first part of this tutorial:
http://www.gametoast.com/forums/viewtop ... =27&t=4750
It explains how to add a shipped AT-ST.
Spl1tz
Recruit Womprat Killer
Posts: 7
Joined: Sun Dec 14, 2008 1:53 pm

Re: Making a map: Questions

Post by Spl1tz »

These aren't vehicles, they're explosion files for the vehicles:
imp_walk_atat_exp
imp_walk_atst_exp

Have a look at the first part of this tutorial:
viewtopic.php?f=27&t=4750
It explains how to add a shipped AT-ST.
Thx for this, now i can add vehicles.
The issue now is the sound :? After i do the munge (last part) i can't see the .lvl file in the "data_TES/_LVL_PC/Sound" directory.
Wouldn't it work if someone just gave me a file with all the sound vehicles which i can just place somewhere to make them.. sound? :?
Post Reply