Thanks in advance!
Another LUA Question
Moderator: Moderators
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Another LUA Question
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
to you!
Thanks in advance!
Thanks in advance!
-
nmycon
Re: Another LUA Question
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
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

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

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Another LUA Question
That's not the problem! The problem is the PC isn't reading the mission.lvl! 
-
nmycon
Re: Another LUA Question
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Another LUA Question
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 wrote:...I can take it away, and it still continues happily...
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Another LUA Question
Yep, exactly.[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?
-
nmycon
Re: Another LUA Question
there is no way, the game cant run without that file
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Another LUA Question
Well, it does. My game is living (well, working) proof. It really annoys menmycon wrote:there is no way, the game cant run without that file
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
Would it help if I give you a link to my mission.lvl and the mission.lvl I downloaded?
No Ideas....?
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Another LUA Question
Because you never restored your original mission.lvl after you removed the modded onetheultimat wrote:...When I replace that mission.lvl over my original mission.lvl, the game reads the file! 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!
-
theultimat
- Lieutenant General

- Posts: 679
- Joined: Sun Apr 13, 2008 1:39 pm
- Location: UK
Re: Another LUA Question
So, do I need to replace the modded mission.lvl with the very first original mission.lvl? Thanks.[RDH]Zerted wrote:Because you never restored your original mission.lvl after you removed the modded one
EDIT: Oh yeah. Do you have any ideas on why my game reads the file sometimes, and only for certain maps?
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Another LUA Question
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.
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.
