No severity 3 errors but crashing

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

AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: no severity 3 errors but crashing

Post by AQT »

Dakota wrote:i have one question though, is there any way possible to just add on pieces of terrain onto the sides of the map to make it a square?
No. You will have to create new terrain that is a square whose dimension values are a power of two.

But before you do that, create a new layer, and move all of you map objects, nodes, barriers, etc. into it. Save, and then copy and paste this .lyr file elsewhere. Paste it back in your world1 folder after you've created the new terrain. Perhaps you can somehow preserve the work you've already done.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: no severity 3 errors but crashing

Post by Dakota »

AQT wrote:
Dakota wrote:i have one question though, is there any way possible to just add on pieces of terrain onto the sides of the map to make it a square?
No. You will have to create new terrain that is a square whose dimension values are a power of two.

But before you do that, create a new layer, and move all of you map objects, nodes, barriers, etc. into it. Save, and then copy and paste this .lyr file elsewhere. Paste it back in your world1 folder after you've created the new terrain. Perhaps you can somehow preserve the work you've already done.
ok then :|

i was planning on just making a new terrain and keeping the old one with it and then building around it and maybe getting it to look good again, it would take a few hours but could work, i kept backups just in case too. also just wondering is there a way to copy and paste terrian. if there is then i could copy what i have already made for my terrian and then put it on the new stuff, but if there isn't i probably would be less suprised and if there was.

EDIT: i just made a new terrian and kept the custom sides on it and the objects and the map loads (with just a flat map :/ and without medic/ammo driods and vehecal spawns), i'm going to do the layers thing that aqt said and attempt to remake my map...

EDIT2: also does anyone know if there is a way to fix the utapua bunker collision, you can fall through the entire upper layer of it. and most of its ramps.

EDIT3: i wanted to clarify something on the top of the post, when i said a copy and paste of the terrian i meant would i be able to save the entire terrian as an object or something and then put it on the map.
User avatar
Tears2Roses
Chief Warrant Officer
Chief Warrant Officer
Posts: 336
Joined: Thu Jul 07, 2011 9:20 am
Projects :: Oh some random stuff who knows
Games I'm Playing :: SWBF2
xbox live or psn: PC beats xbox.

Re: no severity 3 errors but crashing

Post by Tears2Roses »

You need to load each side in your LUA seperately. So, if you have all, cis, imp, and reb, they need serperate ReadDataFile lines in the LUA. For example:

Code: Select all

ReadDataFile("dc:side\\all.lvl")
"all_inf_rifleman"
ReadDataFile("dc:side\\imp.lvl")
"imp_inf_rifleman"
Now, under the setup teams, this calls for what units are on each side. You can have rebels, imperials, CIS and republic on the same team.

Code: Select all

SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",2, 4},
assault = { "all_inf_rifleman",2,4},
I am on school computers and need to go, but I will update when I get home. Thank you to darth duck for helping me with this, and now im helping you :D
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: no severity 3 errors but crashing

Post by Bob »

Tears2Roses wrote:
Hidden/Spoiler:
You need to load each side in your LUA seperately. So, if you have all, cis, imp, and reb, they need serperate ReadDataFile lines in the LUA. For example:

[code]ReadDataFile("dc:side\\all.lvl")
"all_inf_rifleman"
ReadDataFile("dc:side\\imp.lvl")
"imp_inf_rifleman"[/code]

Now, under the setup teams, this calls for what units are on each side. You can have rebels, imperials, CIS and republic on the same team.


[code]SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",2, 4},
assault = { "all_inf_rifleman",2,4},[/code]

I am on school computers and need to go, but I will update when I get home. Thank you to darth duck for helping me with this, and now im helping you :D
Since he made custom sides it's possible to mess around with the imp_, all_ etc. stuff. I doubt that Dakota makes such a mistake without noticing, he has been modding now for a time...
btw the sides aren't the problem, the map would crash even with stock sides.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: no severity 3 errors but crashing

Post by THEWULFMAN »

Dakota wrote:he said a map that big would cause problems in the post wulf, saying that a map of 1024x1024 would be bad.

I know that... I was saying I've made a 1024x1024 map and it caused me lots of problems. I was joking because he said people will tell you "I've done it" and say it works fine. I've done it, and it caused me lots of problems.


Anyway, I'm not familiar with which Utapua model you speak of. Can you post it's actual model name(uta_bldg_etc)?
Bob wrote:]I doubt that Dakota makes such a mistake without noticing, he has been modding now for a time...

Just a side note, even 5 year veteran modders make mistakes. Human modders anyway.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: no severity 3 errors but crashing

Post by Dakota »

THEWULFMAN wrote:
Dakota wrote:he said a map that big would cause problems in the post wulf, saying that a map of 1024x1024 would be bad.

I know that... I was saying I've made a 1024x1024 map and it caused me lots of problems. I was joking because he said people will tell you "I've done it" and say it works fine. I've done it, and it caused me lots of problems.


Anyway, I'm not familiar with which Utapua model you speak of. Can you post it's actual model name(uta_bldg_etc)?
Bob wrote:]I doubt that Dakota makes such a mistake without noticing, he has been modding now for a time...

Just a side note, even 5 year veteran modders make mistakes. Human modders anyway.

the name of the prop had lizardpen in its name, can't think of the full name right now, but its the bunker that has the cp in it and is the one on the top of the map.

also...
Tears2Roses wrote:You need to load each side in your LUA seperately. So, if you have all, cis, imp, and reb, they need serperate ReadDataFile lines in the LUA. For example:

Code: Select all

ReadDataFile("dc:side\\all.lvl")
"all_inf_rifleman"
ReadDataFile("dc:side\\imp.lvl")
"imp_inf_rifleman"
Now, under the setup teams, this calls for what units are on each side. You can have rebels, imperials, CIS and republic on the same team.

Code: Select all

SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",2, 4},
assault = { "all_inf_rifleman",2,4},
I am on school computers and need to go, but I will update when I get home. Thank you to darth duck for helping me with this, and now im helping you :D
i'm wondering what you are talking about here. we have already been over it that the sides aren't the problem and that the map is.

anyway i have already said in the post right above your one that the map is working now that it is a square...

i'm planning on adding some more stuff to the map now that its a square and is actually working. maybe a space battle over head with some extra rooms and cps in the ships, i need some more indoors combat on the map anyway or my close range troopers will be useless against my snipers. also maybe a teleporter to inside of the ship. if i can't get the utapua lizard pen bunker working then i'll probably just put some teleportation station there that teleports you back and forth from the ship to land. instead of having to get the LAAT and fly up there.

EDIT: also i just thought of something, what would the LUA code for a command hover vehecle be, they have one for walkers and flyers in the stock luas but i don't know one for hover vehecles, like the hovernaut in the convopack mod.

EDIT2: YAY!!!!!!!!!!!!!!! (i can't put enough yay on this post without being banned for making 50 spam topics all saying yay), i actually got my map working with the rectangle version, its planning is working perfect, barriers too, my ai even walked right behind cover zones liked i told them too :D the only thing i need to do now is find out why my vehecle spawns and ammo/medic driods went away (i'll probably have to just add them back in or something but still thats better than a whole map). it turns out that there was a problem with my water in the req. (forgot to add the stuff to the req file but i had the other files where they needed to be). anyway i still need help with the above edit and post and also i now see that i need to move some objects too due to my main bridge having a small gab between it and the bank yet it is still walkable, and i need to get the vehecle spawning and need to get some textures fixed maybe. anyone know why the mygeeto main bridge (called myg_prop_mainbridge i think in the odf file) has white spots on the craters in it that aren't in the stock map?

EDIT3: i must also say sorry for my last few modding topics have tended to be a missing file somewhere or a line not in the lua or req. i have found a good thing out though, rectangle maps do actually work :D. i just need to do the things mentioned in the other 2 edits now.

EDIT4: ok spoke too soon, i looked at the bridge part of my map with all the planning and saw it working well but yet the top and bottom of my map are gone. the objects are there but not hills or mountains... so to work i go.
Post Reply