Timber's Nub Questions

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

TimberWolf

Post by TimberWolf »

Alright, I figured I tampered with something I shouldn't have, so I re-made the map. This is ALL that I did: 1. Using ModTools, created the map and its folder. 2. Copied the Common and All folders into my mod's Side folder. 3. Munged.

It doesn't crash, that's a plus. Nor do the shields work, however. My only conclusion is that I added the shields lines to the wrong part of the ODF; I pasted it into the very bottom. Is there a specific section that it needs to be put into?

EDIT: Here is the exact thing I'm pasting into the ODFs:
MaxShield = 2000
AddShield = 50
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 »

it should be under the properties section.
TimberWolf

Post by TimberWolf »

I put it into the properties section, but there's still no shields ingame.

Here's what the first part of the property section in "all_fly_awing.odf" looks like:
[Properties]
VehicleType = "fighter"
MapTexture = "a-wing_icon"
HealthTexture = "HUD_all_xwing_icon"
VehiclePosition = "common.vehiclepositions.pilot"

MaxShield = 2000
AddShield = 50

MapScale = 1.5
MapViewMin = 750
MapViewMax = 750
What's wrong? :?
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 »

Nothing's wrong. :?

Did you select the "all" side when you munged? (no quotes)
TimberWolf

Post by TimberWolf »

D'oh. When I recreated the mod, I forgot to edit the LUA with the dc tidbit, hence the no shields, I suppose. So I went back, added that in, and now it's back to crashing midway through loading. :cry: Yes, All is selected when I munge.
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

Make sure you've picked munge EVERYTHING instead of picking a specific side.
TimberWolf

Post by TimberWolf »

-_- wrote:Make sure you've picked munge EVERYTHING instead of picking a specific side.
It still crashes. :cry:
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 »

Run the BF2Modtools.exe that is located in the BF2_ModTools folder. Put it in Star Wars Battlefront II\GameData, run it, let the map crash, then there should be a text file called BFront2 in the same folder. Post its contents here. :)
TimberWolf

Post by TimberWolf »

Opened logfile BFront2.log 2006-09-04 1534
ingame stream movies\crawl.mvs

Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\SAL\data\_LVL_PC\core.lvl

Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\CSC\data\_LVL_PC\core.lvl
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
prev = texture iLastPage = 4
ifs_legal.Exit

Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment shell_main

ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadProfile
ifs_saveop_DoOps LoadProfile
num, Selection = 1 table: 03CC120C
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 1
EraSelection.subst = c era_c
EraSelection.subst = g era_g
play movie GRV 200 , 300 510 x 400

Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment GRV0.000000ly

+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 2
EraSelection.subst = c era_c
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 3
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 4
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 11
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 12
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 13
EraSelection.subst = c era_c
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 14
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 15
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 16
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 17
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 18
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 20
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 21
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 22
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 23
EraSelection.subst = c era_c
EraSelection.subst = g era_g
EraSelection.subst = c era_c
EraSelection.subst = g era_g
num, Selection = 1 table: 03CC120C
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 34
EraSelection.subst = g era_g
play movie GRV 200 , 300 510 x 400

Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment GRV0.000000ly

bEra_CloneWar = 1 bEra_Galactic = 1
clonewar_visable = false galactic_visable = true
Adding map: SWSg_Diet Dr. Pepper idx: 1
this.CurButton = _map_add
cur_button = nil
this.CurButton = Launch
cur_button = nil

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture btn_directional_pad_LR

Message Severity: 3
.\Source\Ordnance.cpp(424)
Ordnance base class "com_weap_veh_fly_scoutlasers_ord" not found
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 »

Opened logfile BFront2.log 2006-09-04 1534
ingame stream movies\crawl.mvs

Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\SAL\data\_LVL_PC\core.lvl

Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\CSC\data\_LVL_PC\core.lvl
Message Severity: 3
.\Source\Ordnance.cpp(424)
Ordnance base class "com_weap_veh_fly_scoutlasers_ord" not found
Those are your problems, try cleaning then munging?
"com_weap_veh_fly_scoutlasers_ord"
Make sure you copy the common side from assets\sides. If you have already done this, make sure that odf exists in that folder.
TimberWolf

Post by TimberWolf »

In my common folder (in the sides folder in my map's folder) there is only "sound." Should there be something else?

EDIT: Ok, I went back to my Common folder in Assets and saw that there was a lot more stuff there, so I copied that over. Then I cleaned as instructed, then munged. Still crashes. Here's the latest BFront2:
Opened logfile BFront2.log 2006-09-04 1612
ingame stream movies\crawl.mvs

Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\SAL\data\_LVL_PC\core.lvl

Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\addon\CSC\data\_LVL_PC\core.lvl
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
prev = texture iLastPage = 4
ifs_legal.Exit

Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment shell_main

ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadProfile
ifs_saveop_DoOps LoadProfile
num, Selection = 1 table: 03CC120C
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 1
EraSelection.subst = c era_c
EraSelection.subst = g era_g
play movie GRV 200 , 300 510 x 400

Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment GRV0.000000ly

+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 10
EraSelection.subst = c era_c
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 11
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 12
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 13
EraSelection.subst = c era_c
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 14
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 15
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 16
EraSelection.subst = c era_c
EraSelection.subst = g era_g
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 17
EraSelection.subst = c era_c
EraSelection.subst = g era_g
EraSelection.subst = c era_c
EraSelection.subst = g era_g
num, Selection = 1 table: 03CC120C
+++mission modes changed! ifs_mspc_MapList_layout.SelectedIdx = 34
EraSelection.subst = g era_g
play movie GRV 200 , 300 510 x 400

Message Severity: 2
.\Source\GameMovie.cpp(399)
Unable to find open movie segment GRV0.000000ly

bEra_CloneWar = 1 bEra_Galactic = 1
clonewar_visable = false galactic_visable = true
Adding map: SWSg_Diet Dr. Pepper idx: 1
this.CurButton = _map_add
cur_button = nil
this.CurButton = Launch
cur_button = nil

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
.\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture btn_directional_pad_LR

Message Severity: 3
.\Source\Ordnance.cpp(424)
Ordnance base class "com_weap_veh_fly_scoutlasers_ord" not found
EDIT2: It looks like the same as before. :?
Rekubot
Jedi
Jedi
Posts: 1080
Joined: Wed Apr 05, 2006 12:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: Shadow Complex
xbox live or psn: Rekubot
Location: UK

Post by Rekubot »

Okay, try following this, it usually helps me out. Ignore the bits you've already done and just follow the parts that you haven't.
Create a new map, copy the race you want to edit (example: republic) into the sides folder of the new map. Now go to assets/shell and copy all of the folders in it, but not the .req, then paste it in the _Build/shell folder in the newmap you created. Now Copy the “Common” folder from within the mod-tool “assets/sides” directory and place it in the sides folder of your new map, edit the texture, now, go into common > script > newmapname and open the LUA file named newmapnamec_con.lua (for me that was BS1c_con.lua ). Now if you look down the LUA file you will see ReadDataFile("SIDE\\rep.lvl", change this to ReadDataFile("dc:SIDE\\rep.lvl , then copy 2 .bat files in the side you got, these are: clean.bat and munge.bat , these can be aquired from the _BUILD > Sides > ALL in the newmap you created, then copy the 2 .bat files into the side in the mod tools you are modifying. Finally we munge the your new map (see Jedi Creation doc for more info) we select the new race in the drop down menu on the left, and select the race you edited (mine was rep) you alos have to tick the "common" check box, then munge!

P.S: You can get the race from the assets > sides folder !
P. P.S: The textures are in the msh of your copied side folder.
This is about editing skins, but ignore the reskinning part and just replace it with adding the shield part instead.
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 »

In my common folder (in the sides folder in my map's folder) there is only "sound." Should there be something else?
You were supposed to copy the common folder from assets/sides, not just assets\common. That's your problem.
fat_walrus

Post by fat_walrus »

I think you could be missing your core.lvl
TimberWolf

Post by TimberWolf »

Hallelujah, it works! :D

I recreated the map (again) and followed Reku's guide to the letter. Here are the things that I didn't do before: I didn't mess with any Shells and I didn't copy any .bat files. Those made the difference, I guess. :?

Next question: is there a way to discern whether or not their shields are up in game? The impact splash is tiny on fighters and there's no indication of whether or not the health bar is their shields or their actual health.

EDIT: I've moved on to altering unit speeds, but it doesn't seem to be working (what a surprise?) Each time I altered the "imp_fly_tieinterceptor.odf"'s Mid, Min, Max, and Boost speeds and Acceleration, it was continually not fast enough, so I changed them to huge values (min speed was 500, you get the picture), munged, and played. No difference. When I munged, sides was set to EVERYTHING, so that's not it. For some reason, it doesn't want to change...

Also, how does one make a new object, specifically, a capital ship? I want to change the way it is currently. It seems like ZeroEdit is for making whole maps, not creating an object itself. Though, as is apparent, I don't know much about it. If the answer is XSI, I have the modtools, but it looks awfully complicated. :( Is there an easy way to change an object's size, too? As in a value in the ODF?
Rekubot
Jedi
Jedi
Posts: 1080
Joined: Wed Apr 05, 2006 12:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: Shadow Complex
xbox live or psn: Rekubot
Location: UK

Post by Rekubot »

If the shields are working, there should be a white bar on the left like you get with the jetpack. If it's not working, are you sure you've put the 'dc:' part in the LUA, as well as copied the ALL side from the assets?
TimberWolf

Post by TimberWolf »

Rekubot wrote:If the shields are working, there should be a white bar on the left like you get with the jetpack. If it's not working, are you sure you've put the 'dc:' part in the LUA, as well as copied the ALL side from the assets?
Shields are fully functional now, I was referring to the attacker's point of view. It's hard to see if their health bar is the actual one or their shields unless your reticule is directly over them.

Other questions, please? :) The most prominent of which being the difficulty changing speed and maneuverability.

EDIT: Hehe, nevermind, I forgot to add the dc: to the Imp side as well as the All. :roll: That's one question down.
TimberWolf

Post by TimberWolf »

I apologize for the double post, but nobody has responded in two days, so my only conclusion is that my thread is being overlooked. More people than Rekubot (thank you very much; my mod is going ahead largely thanks to you) are allowed to post, y'know. :wink: Thanks to everyone else who has posted, too.

My current questions:

What controls the size of an object? I've scoured ODF files but found no mention. At first I thought it was MapScale, but it isn't.

What do I have to do to modify an object? Is it XSI? I want to change a capital ship.
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
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 t551 »

-objectscale [number]

in the option file should work. No brackets, though.
TimberWolf

Post by TimberWolf »

t551t551 wrote:-objectscale [number]

in the option file should work. No brackets, though.
This doesn't seem to be working. I want to make the cap ships bigger, so I added that line to "all_cap_moncalamari.msh.option," "all_cap_rebelcruiser2.msh.option," and "all_cap_rebelcruiser.msh.option" (not knowing the difference between them; they all look the same to me). First I made the number 2, thinking that would double the size. There was no noticeable difference, so I boosted it to 200, figuring I'd be able to notice that. Still no difference. Note: these files are in F:\BF2_ModTools\data_SWS\Worlds\SWS\MSH, where SWS is the mod name. Here is what my option files look like:

-donotmergecollision -collisiontype static

-objectscale 200

Is there something wrong with that or are capital ships unique in some way?
Post Reply