Page 1 of 1

Another LUA Question

Posted: Sun Jun 08, 2008 10:58 am
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:

Re: Another LUA Question

Posted: Sun Jun 08, 2008 11:18 am
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

Re: Another LUA Question

Posted: Sun Jun 08, 2008 12:12 pm
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?

Re: Another LUA Question

Posted: Sun Jun 08, 2008 12:43 pm
by nmycon
post whatever you edited and i'll see if i can help you

Re: Another LUA Question

Posted: Sun Jun 08, 2008 1:24 pm
by theultimat
That's not the problem! The problem is the PC isn't reading the mission.lvl! :(

Re: Another LUA Question

Posted: Sun Jun 08, 2008 1:31 pm
by nmycon
:roll: ... if the PC wasnt reading it, do you think the game would be running?

Re: Another LUA Question

Posted: Sun Jun 08, 2008 2:03 pm
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?

Re: Another LUA Question

Posted: Sun Jun 08, 2008 2:54 pm
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.

Re: Another LUA Question

Posted: Sun Jun 08, 2008 2:57 pm
by nmycon
there is no way, the game cant run without that file

Re: Another LUA Question

Posted: Mon Jun 09, 2008 12:30 pm
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....?

Re: Another LUA Question

Posted: Mon Jun 16, 2008 10:47 pm
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:

Re: Another LUA Question

Posted: Tue Jun 17, 2008 12:47 pm
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?

Re: Another LUA Question

Posted: Tue Jun 17, 2008 2:05 pm
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.