Need some more help!

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
maxburg96

Need some more help!

Post by maxburg96 »

Alright, I got my basic map made (thanks to guru and sdwhwk) and now I want to do some more complex stuff. I would like to move the default CPs and add a few more. I would also like to change the number of units per side, and if possible, I would like to change how many units are on the field at one time. Thanks. :D
imp_strikeforce

RE: Need some more help!

Post by imp_strikeforce »

to move cps and any other objects,
imp_strikeforce wrote:ok good. to move the regions hit select, click the region you want to move so it highlights it. then hold down either Z X or C and click and drag using either the left, middle, or right mouse button. each key has a different function, ex. Z and X rotate/resize the region, C moves it. the different mouse butons control the x y and z dimensions. play around with it and you'll get the hang of it. ;)
for the units and reinforcements,
http://www.gametoast.com/index.php?name ... opic&t=404

these should help
maxburg96

Post by maxburg96 »

Yeah that helps, but how do view the mission lua file. I opened it in notepad, but couldn't see any numbers, just crazy symbols. Thanks.
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Saturn_V »

you got the wrong file, somehow - .lua files are text files. Check out this thread

index.php?name=PNphpBB2&file=viewtopic&t=285&start=15

where I have posted a picture showing the different file types, what you need to edit them, and how they fit together.

(Note: text - use notepad or wordpad;
hex - search the forum for "hex editor", there'll be a few recommended;
bitmap - you'll need a paint program that can read .tga )
maxburg96

Post by maxburg96 »

I have done some searching, but with no luck, so where can I find the mission.lua file for the map I have created. Thanks :)
imp_strikeforce

Post by imp_strikeforce »

the mission luas are located in yur Modid/Common/Scripts/Modid/ folder, and it's just a simple text file that notepad can open.
DeathT

Post by DeathT »

Saturn_V wrote: bitmap - you'll need a paint program that can read .tga )
IrfanView can read .tga. it a free image program. http://www.irfanview.com, and a great program too
maxburg96

Post by maxburg96 »

I finally found the files and everything worked great. I actually had like 3200 troops on the field at one time. It was awesome!! I have another simple question though. How do i add some vehicles and when i went into the mission lua file there was no info. about the CIS and Republic. Do i have to manually add them? Thanks.
Saturn_V
Emperor's Hand
Posts: 487
Joined: Sun Dec 26, 2004 12:11 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Saturn_V »

The Clone Wars era has it's own mission lua, eg mod1a.lua is GCW, mod1c.lua is clone wars

Vehicle tutorial here:
http://forums.lucasarts.com/thread.jspa ... &tstart=25
imp_strikeforce

Post by imp_strikeforce »

you'll see a part in the mission lua like this

ReadDataFile("SIDE\\all.lvl",
"all_inf_basicdesert",
"all_inf_lukeskywalker",
"all_inf_smuggler");

ReadDataFile("dc:SIDE\\sat.lvl",
"sat_fly_armchair");

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_basic_tie",
"imp_inf_darthvader",
"imp_inf_dark_trooper");

you hav to add the vehicle ODF name that you want to use like what iv highlighted

also you need to allocate a memory pool for the type and amount of vehics you hav in yur lvl

ClearWalkers()
AddWalkerType(0, 0)-- special -> droidekas
AddWalkerType(1, 0)-- 1x2 (1 pair of legs)
AddWalkerType(2, 0)-- 2x2 (2 pairs of legs)
AddWalkerType(3, 0)-- 3x2 (3 pairs of legs)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
SetMemoryPoolSize("EntityFlyer", 40)
Post Reply