Need help with 2 things^^

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
CmdAt-a

Need help with 2 things^^

Post by CmdAt-a »

As the Subject say, i need some help:

1. How do i add an AT-AT and AT-TE to my ground map
2. I have added a clone cruiser to my ground map in the one side and a rebel cruiser in the other side of map, but then they are there too if i play droids, is there a way to make my map only work in clone wars(that you only can pick clone wars mode when you pick map)??

any help would be good

At-a
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Post by Maveritchell »

Use Search. Please.

One of your answers was only 4 topics down, on the first page.

Walkers: (2nd page)
http://www.gametoast.com/index.php?name ... pic&t=6648

Removing Eras:
http://www.gametoast.com/index.php?name ... oving+eras
CmdAt-a

Post by CmdAt-a »

srry, i saw the topic but i though that it was about something else, i'll use search next time, and the first link didnt help me too well, that about at-sts, i can get them working but it dont work for at-tes
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
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 Qdin »

you're sure it's got nothign to do with SetMemoryPoolsSize's...?
I've never had any vehicle into a map before, it just never worked :P Kyross once helped me, but after that it still didn't help xD
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 »

Yeah, it's with memory pools:

Code: Select all

SetMemoryPoolSize("CommandWalker", #)
change # to the number of command walkers you have in your map.
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
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 Qdin »

Amazing :P I could point out a problem with a vehicle! :twisted:

Any other small stuffs we all need to know when adding Command Walkers...? :)
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 »

This is from the LUA guide in the docs talking about the walker section:
ClearWalkers wipes out any allocations that may have been done automatically for walkers. You’ll need to have this line in, and uncommented if you want to have walkers in your level.

-- ClearWalkers()

These next lines will add walkers to your level. The first number inside the parenthesis specifies how many leg pairs the walker type has. Droidekas are set up as a special case, with 0 leg pairs. So as you can see below, we have AddWalkerType(0,4) this specifies that we will have 4 walkers with 0 leg pairs (droidekas). 1 leg pair would specify a walker with one pair of legs, an ATST for example, or a one-man ATST from the clone wars era. So for 2 ATSTs, we would have a line that says; AddWalkerType(1, 2)
2 leg pairs would be a unit like the CIS spider walker, or an ATAT, and 3 leg pairs would be the 6-legged walker from the clone wars era.

AddWalkerType(0, 4) -- 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)
CmdAt-a

Post by CmdAt-a »

so it will be SetMemoryPoolSize("CommandWalker", 50) *if i want 50 command walkers :D *

lol Qdin, you figured out something, thats what we danish pple do :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 »

Yeah,....Wait!! 50 Command walkers?! Are you serious?! :?
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 »

There is a limit to the amount of CPs that can be in a map.
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

50 command walkers will crash a game. Last time I tried I got 16.
Post Reply