Author Topic: Custom shell.lvl crashes.  (Read 1797 times)

Commander Awesome

  • SWBF 1&2 Modder
  • Moderators
  • This Man Has No Life
  • ****
  • Posts: 1371
  • Addicted to Battlefront since 2006.
  • Awards Special Award for players of the EA's SWBF (2015) Participated in the ICW6 Special Award for those that play the original SWBF Special Award for those that play SWBF2
    • View Profile
    • Awards
  • PSN: AaTc_CmdrAwesome
  • Steam ID:
  • Origin ID: Rayce_Skykiller
Custom shell.lvl crashes.
« on: March 08, 2015, 08:26:44 PM »
Using Phobos' builder, I tried to modify missionlist.lua as a personal mod for my own convenience, and as a prototype for a real mod I'm making (more on that later). However, this custom (global) shell.lvl crashes the game before the logos even appear. Missionlist was the only file I changed, and I made sure all the models and textures from "Data\shell\msh" were copied over to "Custom\shell\msh".

missionlist.lua: http://pastebin.com/QkJF4gKd

What am I doing wrong?

EDIT: Shell not Common  :slap:
« Last Edit: March 09, 2015, 04:21:01 PM by Commander Awesome »

Dark_Phantom

  • The Official Ghost
  • Moderators
  • Advanced Member
  • ****
  • Posts: 766
  • Awards A member of the winning team of ICW6 Administered events in ICW5 A member of the winning team of ICW5 Special Award for those that play the original SWBF ICW4 Participant Recognizes someone who most generously donated funds to the site or the site ICW3 Participant Recognizes a winner of an Amateur Modding Contest on this site.
    • View Profile
    • The BOBclan
    • Awards
  • PSN: phantom567459
  • Steam ID:
  • Origin ID: phantom567459
Re: Custom shell.lvl crashes.
« Reply #1 on: March 09, 2015, 01:40:07 PM »
I would try cleaning the builder first.  Clean will reset it back to default (assuming you haven't edited the "Data\common\" files).  Better yet would be to pull the shell builder before it was edited out of the compressed folder that was downloaded.
Then, I would just try munging a shell with no edits.  Then, if that is successful, copy and paste the original missionlist.lua into the lua folder. Edit that one and munge and see what happens.  I will look closer at the lua if it still doesn't work.
The BOBclan:  A Rich History


'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

Commander Awesome

  • SWBF 1&2 Modder
  • Moderators
  • This Man Has No Life
  • ****
  • Posts: 1371
  • Addicted to Battlefront since 2006.
  • Awards Special Award for players of the EA's SWBF (2015) Participated in the ICW6 Special Award for those that play the original SWBF Special Award for those that play SWBF2
    • View Profile
    • Awards
  • PSN: AaTc_CmdrAwesome
  • Steam ID:
  • Origin ID: Rayce_Skykiller
Re: Custom shell.lvl crashes.
« Reply #2 on: March 09, 2015, 04:29:06 PM »
Tried it without my missionlist. It seems to work fine, except that it skips the opening logos. (Which isn't a serious problem, it's just weird.)

Any idea what could be wrong with the missionlist?

Phobos

  • Poodoo
  • Just Registered
  • *
  • Posts: 0
  • Awards Shotgun Tournament 1st Place Award for extensive modding contributions and/or donations to TWD Battlefront Special Award for those that play the original SWBF To recognize Modders that make a most excellent contribution within the Month LeaderBoard 1 organized by GDH92 and ComSharpshot T.1 1v1 Tournament 1st Place organized by SleepKiller Releasing Multiple Mods on SWBFgamers.com Recognizes someone who most generously donated funds to the site or the site Special Award for those that play SWBF2
    • View Profile
    • Awards
Re: Custom shell.lvl crashes.
« Reply #3 on: March 10, 2015, 12:13:23 AM »
Line 22
Code: [Select]
ReadDataFile("dc:...\\...\\...\\MPM\\data\\_lvl_pc\\mission.lvl")

I don't know if ReadDataFile command is supported in the missionlist, I think that might be causing the crash. Missionlist is what defines the stock missions, addme.script files define mod maps. I see you added the custom mission references to sp_missionselect_listbox_contents. Now what you want to do is take all the custom mission LUA, add them to your global mission LVL, you will have edit the main REQ and build subreqs for it.

Commander Awesome

  • SWBF 1&2 Modder
  • Moderators
  • This Man Has No Life
  • ****
  • Posts: 1371
  • Addicted to Battlefront since 2006.
  • Awards Special Award for players of the EA's SWBF (2015) Participated in the ICW6 Special Award for those that play the original SWBF Special Award for those that play SWBF2
    • View Profile
    • Awards
  • PSN: AaTc_CmdrAwesome
  • Steam ID:
  • Origin ID: Rayce_Skykiller
Re: Custom shell.lvl crashes.
« Reply #4 on: March 10, 2015, 09:48:13 AM »
I thought that might be the problem. I'm just not a big fan of replacing the stock .lvls if I don't have to.

Phobos

  • Poodoo
  • Just Registered
  • *
  • Posts: 0
  • Awards Shotgun Tournament 1st Place Award for extensive modding contributions and/or donations to TWD Battlefront Special Award for those that play the original SWBF To recognize Modders that make a most excellent contribution within the Month LeaderBoard 1 organized by GDH92 and ComSharpshot T.1 1v1 Tournament 1st Place organized by SleepKiller Releasing Multiple Mods on SWBFgamers.com Recognizes someone who most generously donated funds to the site or the site Special Award for those that play SWBF2
    • View Profile
    • Awards
Re: Custom shell.lvl crashes.
« Reply #5 on: March 10, 2015, 11:09:11 PM »
I thought that might be the problem. I'm just not a big fan of replacing the stock .lvls if I don't have to.
Yeah me too, but if you're adding anything new to the missionlist, it seems it must go in the global mission.lvl
You can still keep all stock LUA the same and basically "upgrade" your mission by adding custom LUA to it. I think the mission.lvl I'm currently using is around 600KB. For mods like this you will be replacing the stock shell and mission, you can probably get away with not having to mod any other stock LVLs. Custom maps and sides can be called on as if they were stock this way and placed anywhere in the _LVL_PC folder. I've added you to my PM whitelist in case you have any questions.

Commander Awesome

  • SWBF 1&2 Modder
  • Moderators
  • This Man Has No Life
  • ****
  • Posts: 1371
  • Addicted to Battlefront since 2006.
  • Awards Special Award for players of the EA's SWBF (2015) Participated in the ICW6 Special Award for those that play the original SWBF Special Award for those that play SWBF2
    • View Profile
    • Awards
  • PSN: AaTc_CmdrAwesome
  • Steam ID:
  • Origin ID: Rayce_Skykiller
Re: Custom shell.lvl crashes.
« Reply #6 on: March 11, 2015, 02:29:40 PM »
I did as you suggested. The maps show up, but crash with no Message Severity 3 errors in the log. (Just stuff about missing movies and localization.)

The custom scripts are just the ones from the Main Play Mod 6 source, only modified to read the custom sides from a different folder, and the modified maps under different names. So I can freely choose between MPM and the stock missions. (I'm not releasing this, it is just for my own personal use.) I made sure the sides are in the folder that the scripts call for.


EDIT: It turns out there was just a typo in modded Geonosis.  :slap: It works now.
« Last Edit: March 11, 2015, 09:59:22 PM by Commander Awesome »