SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: wsa30h on July 03, 2020, 03:02:32 PM

Title: unit flew outside world error
Post by: wsa30h on July 03, 2020, 03:02:32 PM
is it possible to increase the distance you can fly outside of the map ? Message Severity: 2
D:\src\FRONTLINE_PC\FrontLine\Source\EntitySoldier.cpp(2685)
Unit flew out of world, x = -77.447510, z = -1140.421387
Title: Re: unit flew outside world error
Post by: oldsnake on July 04, 2020, 11:36:47 AM
hi wsa30h
make a back up copy of your map. load the back up copy into hex editor look for   42 6F 75 6E 64 61 72 79 change it to 00 00 00 00 00 00 00 00 and save.
this will remove the boundary on the map so troops can go outside the boundry. test the map see if the error remains.
Title: Re: unit flew outside world error
Post by: wsa30h on July 04, 2020, 11:57:00 AM
thanks snake i will get back to you if it works. ok it seems hex editor cant find the value.
Title: Re: unit flew outside world error
Post by: oldsnake on July 04, 2020, 12:26:14 PM
I can confirm that on a mod map I made here the entry is missing aswell.
Title: Re: unit flew outside world error
Post by: wsa30h on July 04, 2020, 12:27:37 PM
so do i put this into the munged map or the wld and i presume i put it under hex value ? is it possible to hex edit the zero editor exe instead ?
Title: Re: unit flew outside world error
Post by: oldsnake on July 04, 2020, 02:16:32 PM
I am not sure. it seems entry of the boundary is not munged into the lvl file. It is in stock maps so I figured it would work on a mod map as well.
Title: Re: unit flew outside world error
Post by: wsa30h on July 04, 2020, 03:08:11 PM
interesting there must be other ways to go beyound 256 by 256.
Title: Re: unit flew outside world error
Post by: oldsnake on July 04, 2020, 03:58:32 PM
Just munged a stock map this is what was found  62 6F 75 6E 64 61 72 79 change it to 00 00 00 00 00 00 00 00 and save. The jets can leave the battlefield now.
https://mega.nz/#!rAQU0CBL!BLVhMMXEhcekoboAN2z_PfnytozkKedjj8KI4PTX_2I
Title: Re: unit flew outside world error
Post by: wsa30h on July 05, 2020, 02:54:37 AM
hey oldsnake this only removes the boundary but doesent allow you to go past the very edge of the map.
Title: Re: unit flew outside world error
Post by: oldsnake on July 05, 2020, 11:40:08 AM
Hi is it possible to put in the barriers like seen in the pic so jet cannot leave the battlefield.

https://mega.nz/#!qUBgnY7R!R1wf8MBs_EcKPqEd589N7CX0lbe_NeZ4MZr-DbDuML0
Title: Re: unit flew outside world error
Post by: wsa30h on July 05, 2020, 11:45:55 AM
yes that is possible i wanted to go make a map twice as big as the default but you just dissapear if you walk too far and its hardcoded so it cant be changed
Title: Re: unit flew outside world error
Post by: oldsnake on July 05, 2020, 12:21:59 PM
That's great if you can build those around the map it will keep them inside the battlefield.
Title: Re: unit flew outside world error
Post by: wsa30h on July 05, 2020, 01:18:29 PM
yes its very simple just build a boundary in zero editor.
EhPortal 1.34 © 2024, WebDev