Height-Spawn-Problem

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
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Height-Spawn-Problem

Post by Redline »

Hello everybody i got a big problem with the height of my map and the problem is that I can't spawn in height like 3000.
It seems that battlefront has his limit height about 327 and it's the maximum height where you can be with an unit.
I'm not really sure if it is true like i have said, but if there was a way to set the height like 3000 so that units can spawn, i would be very thankful to you.
And of course i already set the height to 3000.

SetMaxFlyHeight(-3000)
SetMaxFlyHeight(3000)
>> SetMaxPlayerFlyHeight (-3000)<< ???
>> SetMaxPlayerFlyHeight (3000) << ??? Why doesn't it work and why can be vehicles in this height without to die???

So here is a picture what it looks like if u spawn there.
Hidden/Spoiler:
Image
Ps: In this picture you can see german so don't wonder and you know what usally is standing in english there .
I'm getting crazy of sw bf 2 and if you have an idea so then post and tell me, pls.
Thx in advance.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Height-Spawn-Problem

Post by Fiodis »

Why are you setting the max fly heights to negative and then positive values? It ought to be:

Code: Select all

    SetMinFlyHeight(-3000)
    SetMaxFlyHeight(3000)
    SetMinPlayerFlyHeight(-3000)
    SetMaxPlayerFlyHeight(3000)
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: Height-Spawn-Problem

Post by Darth_Spiderpig »

Redline wrote:SetMaxFlyHeight(-3000)
SetMaxFlyHeight(3000)
>> SetMaxPlayerFlyHeight (-3000)
>> SetMaxPlayerFlyHeight (3000)
For me the code in the lua is like that:

Code: Select all

    SetMaxFlyHeight(3000)
    SetMaxPlayerFlyHeight (3000)
or you could use:

Code: Select all

    SetMinFlyHeight(-3000)
    SetMaxFlyHeight(3000)
    SetMinPlayerFlyHeight(-3000)
    SetMaxPlayerFlyHeight(3000)
Redline wrote:Why doesn't it work and why can be vehicles in this height without to die???
I guess AI pilots.

And I don't think there is a max hight where you can be with an unit, so try this code and see if it works :wink:

EDIT:
Dang, Fiodis beat me.
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Re: Height-Spawn-Problem

Post by Redline »

I took that because it's in space too
it doesn't work =/ any other ideas? or is this bugged?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Height-Spawn-Problem

Post by AQT »

Redline wrote:It seems that battlefront has his limit height about 327 and it's the maximum height where you can be with an unit.
If that's the case and 3000 is obviously greater than 327, then that may be the problem. It may be hard-coded or "bugged" as you put it.
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Re: Height-Spawn-Problem

Post by Redline »

One question how is it possible that droidekas can spawn in this height??? :?
I guess they are walkerdroids, but it's not a explanation why they can and other units not.
Look at this pic and answer, pls.
Hidden/Spoiler:
Image
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Height-Spawn-Problem

Post by Fiodis »

Droidekas are technically more vehicles than units. Now that I see a pic, though, why would you want to spawn that high? It makes the ground look terrible.
Coley
Sergeant Major
Sergeant Major
Posts: 249
Joined: Sun Aug 09, 2009 11:27 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany

Re: Height-Spawn-Problem

Post by Coley »

That´s right and the "sky wall" of the ground looks ugly, too...
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Re: Height-Spawn-Problem

Post by Redline »

I'm trying to fill space and ground into one map. Sure the Planet still needs an environment and the ground hmmm... okay but i think there is a way to let it looks good.
Anyway so i have to tell the game that every unit is a technical vehicle like the droideka??? :runaway: :roll:
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Height-Spawn-Problem

Post by Fiodis »

No, at the moment we don't know much about how the droideka works. It's a walker that's a unit and despite efforts to the contrary we haven't been able to replicate that with any other model. So it's looking like you just can't have units that high.

My advice to you: search for earlier attempts to get ground and space into one map. There have been some pretty successful but relatively unknown experiments done.
User avatar
Knightfire2201
Private First Class
Posts: 85
Joined: Fri Dec 04, 2009 4:25 pm
Projects :: building a railgun
Games I'm Playing :: RUSE+HL2+Minecraft
xbox live or psn: TehJellyfish113
Location: See that tank over there? See that idiot trying to take it down with a pistol? Well, that's me...

Re: Height-Spawn-Problem

Post by Knightfire2201 »

Yeah, i know there's at least 2 that had land/space battles... I don't remember their exact name at the moment. They were made by the same person who made the capitol ship down maps..
User avatar
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

Re: Height-Spawn-Problem

Post by ThePanda »

Don't you have to change the SetWorldExtents parameter? I think that's the one anyway.
Post Reply