Another LUA Question

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

Post Reply
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Another LUA Question

Post by theultimat »

Ok, I've been posting quite afew new threads recently. Anyway, some of you may remember that I posted a thread called Hex Edit Help! Well, now I have a mission.req file and have muged it with all the LUAs it needs. I made one diference: I changed the Hero on Coruscant from Mace Windu to Cloaked Anakin. So, you would expect it to change the hero, right? Wrong. Nothing changed. Is there something I need to do to the LUAs or mission.req files to make the PC read them? Because it just ignores them. I can take it away, and it still continues happily. Please help me. I will :bowdown: to you!
Thanks in advance! :wink:
nmycon

Re: Another LUA Question

Post by nmycon »

i know right off the bat that you do not know what you are doing!

Firstly, you should be editing the mission.lvl, dont know where you found a mission.lua...

Secondly, you can not change rep_hero_macewindu into rep_hero_cloakedanakin because anakinn has more characters and since the game is continuing, you did something wrong because it should crash

what mode are you playing? conquest?

once you open the mission.LVL not LUA (cuz there is no lua) search for CORc_con

then you should see the characters, replace Windu with normal Anakin, cloaked will crash the game

the (almost) only time you could get cloaked anakin on the republic is if you replaces an episode 2 clone (they have ep2 added to their name so it is long enough to replace with cloakedanakin)

EDIT

Wait... wait... wait...

your post is confusing, are you using the mod tools? or is this a straight hex edit?

If you are using the tools, you have no need for hex editing
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Another LUA Question

Post by theultimat »

:| ? What are you on about? I said I found a Mission.req, not a mission.lua. When you munge a .req file it becomes a .lvl file. I edited the .LUA for each one of the maps (cor1c_con etc) and then replaced the existing mission.lvl (yes, I did make a backup). The problem is, the PC isn't reading the .lvl file. When I tried using a Hex Editor to Hex Edit a mission.lvl, I got the same problem - the PC doesn't read the mission.lvl file. How can I make it read this file?
nmycon

Re: Another LUA Question

Post by nmycon »

post whatever you edited and i'll see if i can help you
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Another LUA Question

Post by theultimat »

That's not the problem! The problem is the PC isn't reading the mission.lvl! :(
nmycon

Re: Another LUA Question

Post by nmycon »

:roll: ... if the PC wasnt reading it, do you think the game would be running?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Another LUA Question

Post by [RDH]Zerted »

theultimat wrote:...I can take it away, and it still continues happily...
Are you saying that if you delete the mission.lvl from the GameData folder, the game starts up fine and correctly loads and allows you to play any non-mod map?
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Another LUA Question

Post by theultimat »

[RDH]Zerted wrote:Are you saying that if you delete the mission.lvl from the GameData folder, the game starts up fine and correctly loads and allows you to play any non-mod map?
Yep, exactly.
nmycon

Re: Another LUA Question

Post by nmycon »

there is no way, the game cant run without that file
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Another LUA Question

Post by theultimat »

nmycon wrote:there is no way, the game cant run without that file
Well, it does. My game is living (well, working) proof. It really annoys me :( !

I don't know if this info helps, but here goes: I downloaded a mod called space heroes of filefront, which means that on Space Kashyyyk you can play as Anakin or Obi-Wan intead of the pilot and marine. When I replace that mission.lvl over my original mission.lvl, the game reads the file :runaway: ! Then, if I re-name the modded mission.lvl to, say, xxxmission.lvl and try to run Space Kashyyyk, I get a Fatal Error: Could not find Mission.lvl! What do you make of that, and how do I fix it? This is ruining my whole career as a Hex Editor! :faint:

Would it help if I give you a link to my mission.lvl and the mission.lvl I downloaded?

No Ideas....?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Another LUA Question

Post by [RDH]Zerted »

theultimat wrote:...When I replace that mission.lvl over my original mission.lvl, the game reads the file :runaway: ! Then, if I re-name the modded mission.lvl to, say, xxxmission.lvl and try to run Space Kashyyyk, I get a Fatal Error: Could not find Mission.lvl!
Because you never restored your original mission.lvl after you removed the modded one :faint:
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Another LUA Question

Post by theultimat »

[RDH]Zerted wrote:Because you never restored your original mission.lvl after you removed the modded one
So, do I need to replace the modded mission.lvl with the very first original mission.lvl? Thanks.

EDIT: Oh yeah. Do you have any ideas on why my game reads the file sometimes, and only for certain maps?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Another LUA Question

Post by [RDH]Zerted »

Yes.

I don't think the game needs to read its mission.lvl if you're playing a mod map. But I would have expected the game to fail on startup if its mission.lvl was missing... guess not.
Post Reply