Need help with adding a Y-wing to the Tatooine Dune Sea map.

Started by John 3:14–16, June 12, 2022, 04:50:01 PM

Previous topic - Next topic
Hi, everyone.

I tried to add a Y-wing to the Tatooine Dune Sea map.  In trying to do that, I followed the instructions at http://www.swbfgamers.com/index.php?topic=3545.0.  When I loaded the map while playing Star Wars Battlefront, the only vehicle that I saw was the skiff.  Also, the Rebelsʼ bases were located where the Imperialsʼ would normally be, and the Imperialsʼ bases were located where the Rebelsʼ bases would normally be. 

When placing the Y-wing, I tried to place it near the landspeeders and X-wings.  For the name of the command post, I specified "CP1."  When I was adding the Y-wing, I could not find the command posts in Zeroeditor; consequently, I tried CP1 to see if that would work.  After I tried playing the map, I looked at the map in Zeroeditor, and the only vehicle object that I could see then was the one for the Y-wing. 

What file or files would one recommend that I look inside to try to locate the cause of the above?  Also, I can post some of the contents of configuration files, if that would help.

Sincerely,

John

Since that map already has vehicles, I will suggest you start by just changing an existing vehicle out for the one you want.  That way, you will know if you mission file is doing what you want it to do, and that all of your files are in the right places.

(The SWBF modder's moto:  One change at a time! )

 :cheers:
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Thank you for the information, Led.  It might be during the weekend when there will be an opportunity to try again, although Iʼll try again sooner, if possible.  I plan to provide feedback after Iʼve tried. 

I would also do a couple other things to start:
1.) If you don't already, download this: http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=1519
This is an improved version of the BFBuilder Pro file, with some friendly additions by myself, including stock map imports.

2.) Do NOT use the "EDIT TAT1" or whatever the button says from any version of BFBuilder.  ZeroEditor will not load all the layers of a stock map through this method (command line only supports base world loading).  You must open DataTAT1 folder and ZeroEditor from there.  If it doesn't launch, try one or two more times, there's a well documented startup error that resolves by starting again.  Click load and traverse the directory structure like this: BFBuilder\DataTAT1\Worlds\TAT1\World1\tat1.wld.  If you open this file, it will have a prompt asking what layers to load, and you want ALL of them (or everything except sound).

3.) Once you have the map loaded, the CPs will still be missing.  At the top, there is the "Active Layer" field.  Click Change.  Mostly, CPs/vehicle spawns are kept in the "Design" layer of the map.  Swap to this layer, and then you can see how the originals are set up, and try swapping out vehicles using the tutorial given.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

Thank you for the additional information and for the link, Dark_Phantom.  I downloaded the improved version of BFBuilder Pro, and I plan to install it by or during the weekend.

June 18, 2022, 04:25:04 AM #5 Last Edit: June 18, 2022, 04:26:46 AM by John 3:14–16 Reason: Changed link to version with images rather than print version without images.
It looks like the GCW Era Mission LUA file is missing some content.  After locating the X-wings on the Dune Sea map, and after entering information for a Y-wing for the object where one of the X-wings would be located, the cleaned and munged files still resulted in an absence of vehicles and in the base locations swapped.  I decided to try simply make a new copy of the Dune Sea map without any changes, and the same results occurred.  I also looked in the files of the shipped worlds, and I think that I found LUA files.  I tried copying the content of the LUA file for the rebels into the GCW Era Mission LUA file.  After cleaning and munging, that seemed to result in a map with all of the vehicles and bases as they normally are.  Something I noticed is that there was a notification message about the GCW Era Mission LUA file when I edited that file without using BFBuilder.  It might have occurred under some circumstance while using BFBuilder also.  Also, I used BFBuilderPro2.01.  I have considered the possibility that the carriage returns at the end of lines might be different when I paste the entire contents of a LUA file into the GCW Era Mission LUA file. 

When I have time, I plan to look at the contents of the GCW Era Mission LUA file line by line in order to see what I can add to it using the example at http://www.swbfgamers.com/index.php?topic=3545.0 and also using the content of the LUA files of the shipped worlds.

The copy of the Dune Sea map without any changes worked.  Before cleaning and munging the copy, I copied and pasted the entire contents of the LUA file for the shipped-worlds Dune Sea map into the LUA file for the copy.  I had tried something similar previously, but I evidently had copied from the wrong shipped-worlds LUA file on that previous occasion (I might have copied from the CW-era LUA file instead of the GCW-era LUA file). 

I plan to next try changing an X-wing to a Y-wing on the copied Dune Sea map.  If the LUA file for that copied map gets changed, I plan to copy the contents from the shipped-worlds GCW-era Dune Sea LUA file.  I plan to then try editing the new LUA file so as to add a reference for the Y-wing.

Sorry for not replying sooner.  The base mission files were in a different area of the assets and I totally forgot that I didn't write a script to move them if the stock map was selected.  Copying the lua like you did is correct. (I generally just swap out the stock maps and use the stock mission).

Remember if you're using this method, and using it as an addon map, you want to put "ReadDataFile("dc:\TAT1\Tat1.lvl")" or whatever, instead of what the main mission has.  (DC: means "Downloadable Content", and the game has a method of determining the mission file if using the addon folder.

It seems like you've got it right where you want it as well.  If you need help, don't be afraid to ask.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

June 30, 2022, 11:30:25 AM #8 Last Edit: June 30, 2022, 11:32:02 AM by John 3:14–16 Reason: Added a missing word.
Thatʼs okay, Dark_Phantom.  I also apologize for not checking the thread for several days.  Thank you for the information regarding the ReadDataFile.  I plan to check that next because when I tried to change an X-wing to a Y-wing using ZeroEditor to specify an object as "all_fly_ywing" and by using BFBuilderPro2.01.hta to add "all_fly_ywing" under "all_fly_xwing" in the GCW MIssion LUA file, I still had two X-wings and not a Y-wing on the cleaned and munged map that I had moved to the AddOn folder of the game.

I think that I misunderstood the Downloadable Content part.  Using BFBuilderPro2.01.hta, I edited the GCW MIssion LUA file so as to make the ReadDataFile line read as below.

ReadDataFile("dc:\TAT1\Tat1.lvl")

After I cleaned, munged, deleted the old folder from the AddOn folder of the game, and placed the new folder into the AddOn folder of the game, when I tried to play the map, there was only a character-selection screen with a black background where a view of the map would normally be. 

Should I instead have put the full file path using the AddOn folder of the game in that path?

I solved the above issue by copying the TAT folder into the _lvl_pc folder for the new map data that was in the AddOn folder of the game.  The map loaded; however, as expected, there were two X-wings.  Next, I will try to find a TAT folder that might have the Tat1.lvl file with Y-wing information.

I tried copying the new .lvl file into the TAT folder and renaming that file as tat1.lvl.  There were still only X-wings.  I then tried adding a Y-wing in the CP7 zone.  After cleaning, munging, copying the new folder into the AddOn folder for the game, copying a TAT folder, copying the new .lvl file into the TAT folder, and renaming the new .lvl file as tat1.lvl, now there is no map and only the character-select screen.  Maybe the next time I try, I can make screenshots and post some of them.

July 03, 2022, 03:38:28 PM #12 Last Edit: July 03, 2022, 03:40:52 PM by John 3:14–16 Reason: Changed to past tense regarding mentioning of including screenshots.
A missing backslash in the path for the ReadDataFile value appears to be what caused an absence of a map.  I made the relevant change so that the map appears again.  I then used Zeroeditor to make changes.  While using Zeroeditor, I made some screenshots of the two X-wing objects and the Y-wing object.  I had placed the Y-wing object near the X-wings and the landspeeders so that the Y-wing would be in the zone of CP7.  Also, I had been working with BFBuilderPro2.01, opening and closing it a number of times while testing changes, and at some point, I could no longer open a map.  I made a screenshot of an error message related to that.  I then opened the GCW Era Mission LUA file without using BFBuilderPro2.01.  I made some screenshots related to that file.  I also made a screenshot of the .req file.  I cleaned and munged the map without using BFBuilderPro2.01 (I found some batch files for that).  I made screenshots to show which files I used for cleaning and munging, and I made two other screenshots related to the munging.  I made sure that the .lvl file for the map had been updated before I copied the map data into the AddOn folder of the game.  I made some screenshots related to copying the map folder into the AddOn folder of the game.  I then made some screenshots of the game to show that the absence of a Y-wing.  One screenshot is of the character screen with the map in the background.  The other screenshot is of a character looking in the direction of where I the Y-wing would be. 

Because I have twenty screenshots, I have included fifteen in this post and the other five in the next post.


I'm sorry I haven't gotten back to you about this.  It's hard to explain how to do it succinctly, but a lot of it is trial and error.
I haven't forgotten though - when I have more time I'll get more detailed instructions on how to do what you're asking.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.