Page 2 of 3

Re: Shell-based mech selections

Posted: Thu Jun 18, 2009 4:24 pm
by Col.Kell
Much obliged squire - don't suppose you could roll me a mercs specific version of one of your custom mechs? Just the one to experiment with shell mech selection in mercs? We'll get this figured out eventually
you mean you'd like one of my mechs so you could experiment with making external-prj-shell-mech-selections? Why not I just give you an NAIS mech to save time?

And I tried making a custom .exe shell. For some reason the changes won't come up. sorry. :(

Re: Shell-based mech selections

Posted: Thu Jun 18, 2009 9:24 pm
by quota4stupid
Col.Kell wrote: you mean you'd like one of my mechs so you could experiment with making external-prj-shell-mech-selections? Why not I just give you an NAIS mech to save time?
I haven't used NAIS - if it's a hack for Mercs I'll google it and play with it :-)
Col.Kell wrote: And I tried making a custom .exe shell. For some reason the changes won't come up. sorry. :(
Do you have a hexdump you can post of your changes (preferably with a hexdump of the same address range before you changed it)?

Re: Shell-based mech selections

Posted: Fri Jun 19, 2009 5:22 am
by quota4stupid
Gave Mercs a spin with one of the NAIS mechs:
bugger.jpg
bugger.jpg (19.3 KiB) Viewed 14698 times
Looks like we're crap out of luck :-( I put the ISWARDOG.BWD into the main Mercs directory, rolled a USERSTAR.BWD that named it with WASM, copied in some RMG BWD files I'd captured previously and ran mw2.exe from the prompt - and it crapped out. Looks like while it will look for certain BWD files in the main directory (including the SCN1 file) it WONT look for mech BWD files anywhere other than the project file. So much for that idea :-(

Re: Shell-based mech selections

Posted: Fri Jun 19, 2009 11:31 pm
by Col.Kell
:( Bummer. I don't guess we'll be making a shell-selected-mech-mod in the near future...

But I do have a couple of questions, you know the BWD format and such better than I do:
  • Why is there a mech table (mech.mtb) in the PRJ that looks almost 100% identical to the one in the mw2shell?
  • Is there a way we could simply replace a mech BWD with something similar to a userstar.bwd? So that way we could use the FE FF tag in the hacked BWD, which in turn would tell the sim to look OUTSIDE the PRJ?
Just some thought. And although I did fail at modding shell-based-mech-selections, I did notice many things that make up the gameplay randomizers in Mercs. Like the skirmish briefings and the environment variables.

Re: Shell-based mech selections

Posted: Sat Jun 20, 2009 3:34 am
by quota4stupid
Col.Kell wrote::( Bummer. I don't guess we'll be making a shell-selected-mech-mod in the near future...
It doesn't look that way. Personally I'm not to keen on EXE hacking, so I'd probably be throwing in the towel on this one for now anyway :-P
Col.Kell wrote: Why is there a mech table (mech.mtb) in the PRJ that looks almost 100% identical to the one in the mw2shell?
You tell me and we'll both know :lol: ;-) While there certainly seem to be a lot of junk files in the PRJ, I'm sure this file is used for something, given that they went to the trouble of updating it between 31cc and Mercs (it doesn't appears in the GBL PRJ - guessing it uses the one in the 31cc file). It's the same info that's stored in the shell EXE, and includes the tonnage and (for Mercs) whether the mech is IS or Clan. The tonnage values are probably not used for anything though (in both the 31cc and Mercs versions of the files, it lists the Elemental as 100 tonnes).
Col.Kell wrote: Is there a way we could simply replace a mech BWD with something similar to a userstar.bwd? So that way we could use the FE FF tag in the hacked BWD, which in turn would tell the sim to look OUTSIDE the PRJ?
Ummm.... I suppose you could try replacing the BWD in the PRJ with a files that contains only an INCL chunk with the 0xfffe ID in it, and see if it calls out an external file? No idea if that will work, but it's my best guess ;-)
Col.Kell wrote: Just some thought. And although I did fail at modding shell-based-mech-selections, I did notice many things that make up the gameplay randomizers in Mercs. Like the skirmish briefings and the environment variables.
Yeah, I think for Mercs instant action it uses the BWD files in the RMG directory and then randomly generates the remaining BWD files needed to make a complete scenario (which would be the stuff you found)... I think ;-) Haven't looked at it too closely yet.

Re: Shell-based mech selections

Posted: Sat Jun 20, 2009 11:45 am
by Col.Kell
You tell me and we'll both know :lol: ;)
hehe... yeah okay. :roll: I'll just do something completely random and dumb, and if nothing happens, we could assume mech.mtb is irrelevent. But if there IS change, then we may have something...
I suppose you could try replacing the BWD in the PRJ with a files that contains only an INCL chunk with the 0xfffe ID in it
Will do.
Yeah, I think for Mercs instant action it uses the BWD files in the RMG directory and then randomly generates the remaining BWD files needed to make a complete scenario (which would be the stuff you found)... I think Haven't looked at it too closely yet.
Well for the BWD files in the RMG (Ready-Made-Groups) directory, I already knew in a way that was where the randomized structures came from. But could this hold the key that may prevent Mercenaries skirmish missions from sucking???? I will try my luck at new self-made RMGs using Ed Wong's Mercsedit3D.

Re: Shell-based mech selections

Posted: Sat Jun 20, 2009 8:18 pm
by quota4stupid
Col.Kell wrote: Well for the BWD files in the RMG (Ready-Made-Groups) directory, I already knew in a way that was where the randomized structures came from. But could this hold the key that may prevent Mercenaries skirmish missions from sucking???? I will try my luck at new self-made RMGs using Ed Wong's Mercsedit3D.
This is a list of BWD files I captured a while back while running a Mercs instant action mission on dosbox - some of the files are verbatim copies of files in the RMG directory (just renamed), the rest appear to be generated by the shell (including some, such as briefing and campaign files, that aren't actually used):

EN01STAR.BWD -> Randomly generated by shell?
EN02STAR.BWD -> Randomly generated by shell?
EN03STAR.BWD -> Randomly generated by shell?
EN04STAR.BWD -> Randomly generated by shell?
EN05STAR.BWD -> Randomly generated by shell?
MIS5ARE1.BWD -> Copy of RMG/DRPSHP3.BWD
MIS8ARE1.BWD -> Copy of RMG/PUMPSTN3.BWD
RAN0BRF1.BWD -> Generated by shell? \
RAN0DBFF.BWD -> Generated by shell? >-> Not actually used methinks.
RAN0DBFS.BWD -> Generated by shell? /
RAN0SCN1.BWD -> Copy of RMG/MIS8SCN1.BWD
RANDNAV1.BWD -> Randomly generated by shell?
RANDWLD1.BWD -> Randomly generated by shell? (includes generated files, files from RMG and files from PRJ)
RND0CAM1.BWD -> Generated by shell? Appears to be a dummy file.
USERSTAR.BWD -> Generated by shell.

I would guess the shell randomly picks some scenery from RMG, renames it and then generates RANDWLD1.BWD to include them (it also includes some MIS*.BWD files from the PRJ file). Anyhow, hope this helps a little with your investigations :-)

Re: Shell-based mech selections

Posted: Sun Jun 21, 2009 11:06 pm
by Col.Kell
It is confirmed; the sim will not accept a "pointer" BWD as a mech. I tried using the INCL tag (put it in the right place too) with my BWD name that had the FE FF tag, and kaput. I got an error that said "ERROR: CANTLOADMECH:" or something.

I think I may just be wasting my time making custom AREx files. Instead, I'll go into the RMG folder, open some of the SCN files in there, and place the referances to real-campaign environments into the randomly selected scenarios. That will be easier.
And I have yet to fiddle with the mech.mtb.

I can't do this tomorrow, I have a big day. Our CAP unit is having a real Colonel fly in from Tullahoma TN to present me with the Wright Bros. Award. :mrgreen:

Re: Shell-based mech selections

Posted: Mon Jun 22, 2009 12:21 am
by quota4stupid
Col.Kell wrote:It is confirmed; the sim will not accept a "pointer" BWD as a mech. I tried using the INCL tag (put it in the right place too) with my BWD name that had the FE FF tag, and kaput. I got an error that said "ERROR: CANTLOADMECH:" or something.
Bugger :-(
Col.Kell wrote: I can't do this tomorrow, I have a big day. Our CAP unit is having a real Colonel fly in from Tullahoma TN to present me with the Wright Bros. Award. :mrgreen:
Congratulations friend :-)

Re: Shell-based mech selections

Posted: Mon Jun 22, 2009 12:26 am
by Skyfaller
Don't worry too much about NetMech shell. I am working on a replacement. I am confident it will work.