Jump to content


Photo
- - - - -

New C&C TD Command Line Parameter Discovered!


  • Please log in to reply
56 replies to this topic

#1 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Saturday, 15 November 2008 - 12:26 PM

I don't think this is 'old hat' <G> as I've yet to read anything on the Internet refering to it.

One of the command line parameters in C&C's GAME.NEW and GAME.DAT files is "-ATTRACT". After looking around the 'Net, the only info that I could find on it was in a text file written by Nyerguds at http://nyerguds.arsa...xt/ccparame.txt .

Other unknown command line parameters are "-0" and "-X", but I have no idea what they do. Also, I have no idea if these command line parameters (as well as the "-ATTRACT" one are contained in C&C95 (as I only have C&C for DOS v1.22), but they may be.

Anyhow, the "-ATTRACT" command line parameter starts C&C in a 'storefront' demo mode of sorts. After one minute of idle time at C&C's main menu, the game starts up map, and then begins to play C&C (complete with units/structures/infantry/etc...)! It looks just like if you were actually playing the game yourself, with units being selected, commanded, and with the map being scrolled accordingly.

I'm not sure what map it is, but it appears to be SCM01EA (the multiplayer map "Green Acres")... unfortunately after about 45 seconds of gameplay, C&C crashes back to DOS with the error message "pure virtual function called!" sad.gif

I tried a fresh install on various PCs (including my old 486 native-DOS PC), but it always crashed after 45 seconds or so of the running demo... hence, I have no idea what would happen at the end of the mission (maybe it would start another map, and auto-play it as well?).

One interesting tidbit, everytime that I started it (before the 45 second crash), the demo appeared to be doing the exact same thing (same unit selections/move commands/map scrolling/etc...), appearing to be some sort of pre-recorded demo 'macro' of sorts... maybe some kind of an unfinished 'demo recorder' of sorts within the game.

Anyways, EXTREMELY cool looking! smile.gif I just wish that it would continue without crashing. Like I said before, dunno if this is old hat (or if it's in C&C95), but I've never read anything on the 'Net refering to this.

(edit) P.S. Something gives me the hunch that the "Record.bin" file contained in the "TRANSIT.MIX" file is the recorded demo... and was recorded by a guy named "bill" <G>. Although the utility "VQAtoAVI 2" reports this file as being "info for map screens (population etc)", I think it might be the recorded demo that plays back.

Edited by Rich Nagel, Saturday, 15 November 2008 - 01:33 PM.

  • 0

#2 Nyerguds

Nyerguds

    Colonel

  • Command & Patch
  • 2,176 posts
  • Location:Flanders (Belgium)

  • Favourite C&C:
    Command & Conquer

Posted Sunday, 16 November 2008 - 12:05 AM

I'd test, it but due to experimental hacks my C&C95.exe currently crashes on startup XD

I already found the info for the map screens in the exe file though, so that's definitely not what record.bin is.

Edited by Nyerguds, Sunday, 16 November 2008 - 12:06 AM.

  • 0
Posted Image

#3 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Sunday, 16 November 2008 - 12:42 AM

QUOTE (Nyerguds @ Saturday 15th November 2008 7:05 PM) <{POST_SNAPBACK}>
I'd test, it but due to experimental hacks my C&C95.exe currently crashes on startup XD


@All, Maybe somone else here with C&C95 could test this ("C&C95.EXE -ATTRACT" I'm assuming).


QUOTE (Nyerguds @ Saturday 15th November 2008 7:05 PM) <{POST_SNAPBACK}>
I already found the info for the map screens in the exe file though, so that's definitely not what record.bin is.


Thanks for the info, and you are correct, sir smile.gif Hehe, I had just typed up the following message in Notepad, as was getting ready to post it here when I saw your reply <G>:


A small update: The "RECORDS.BIN" file (contained in the "TRANSIT.MIX" file) is indeed the file that contains the recorded/macro commands for the self-running demo.

Using a hex editor I chopped out all but the first 16kb or so of the file, and then started C&C with the "-ATTRACT" command line parameter. After 1 minute the demo started to play, but only lasted several seconds before returning to C&C's main menu... and didn't crash back to DOS like it did previously.

Just for a bit of random experimentation I created a blank map (using CCMap for Windows) and copied the resulting "SCM01EA.*" files to my C&C directory. The little bit that I could see before C&C crashed back to DOS was definately this new blank map (although C&C crashed much faster, as the blank map's layout is totally different that the usual "SCM01EA" map).

Lastly (just screwing around here), I renamed one of my savegames to "RECORD.BIN". After running C&C and sitting idle for 1 minute, C&C displayed the error message "Unable to read scenario!" (which I *knew* that it would <G>) - this text is in C&C's "LOCAL.MIX" file - but didn't crash to DOS... rather returning to C&C's main menu.

(edit) P.S.

BTW, I downloaded the C&C demo from ftp://ftp.westwood.com/pub/cc1/previews/demo - only the first file "cc1demo1.zip", as I'm on a measly dialup (the second file "cc1demo2.zip" is over 17 megs!) - and the files SCM01EA.INI/SCM01EA.BIN/RECORD.BIN are not contained in any of the ".MIX" files included in that ZIP of the demo.

I was thinking that maybe the self-running demo would actually work in the demo version (as this would be something that a computer store would run on an in-store demo PC years back), but unfortunately those files aren't included in the demo.

(To save me the trouble of downloading the larger of the two file "cc1demo2.zip") Does anyone know what files are included in this ZIP? Do any of the included MIXes contain the SCM01EA.INI/SCM01EA.BIN/RECORD.BIN files?

Edited by Rich Nagel, Sunday, 16 November 2008 - 12:54 AM.

  • 0

#4 Nyerguds

Nyerguds

    Colonel

  • Command & Patch
  • 2,176 posts
  • Location:Flanders (Belgium)

  • Favourite C&C:
    Command & Conquer

Posted Sunday, 16 November 2008 - 07:50 AM

The second part of the demo are just optional media files, like movies and music. That's why they were put in a separate archive in the first place.

I know that Dune II has a self-playing demo like that... would be fun if the C&C demo included it too, but it doesn't look like it.

[edit]

In C&C95 it starts the demo and then crashes immediately... seems like it was never fully implemented in C&C95. Not to mention if the recording includes mouse movements, the screen is the wrong size for it to reach the build icons in the sidebar.

Edited by Nyerguds, Sunday, 16 November 2008 - 09:38 AM.

  • 0
Posted Image

#5 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Sunday, 16 November 2008 - 08:32 AM

QUOTE (Nyerguds @ Sunday 16th November 2008 2:50 AM) <{POST_SNAPBACK}>
The second part of the demo are just optional media files, like movies and music. That's why they were put in a separate archive in the first place.


That's what I figured, thanks for the info smile.gif


QUOTE (Nyerguds @ Sunday 16th November 2008 2:50 AM) <{POST_SNAPBACK}>
In C&C95 it starts the game then crashes immediately... seems like it was never fully implemented in C&C95.


Thanks for the info. 'Tis a shame it doesn't work using C&C95 (or work fully in the DOS version), it's quite cool looking smile.gif Well, for about 45 seconds or so, that is <G>.
  • 0

#6 CCHyper

CCHyper

    Agent x86

  • Command & Patch
  • 553 posts

Posted Monday, 17 November 2008 - 10:52 AM

Ya'know, for all the years i have been hacking these games, i have never tested -Attract tongue.gif
  • 0

#7 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Monday, 17 November 2008 - 12:06 PM

QUOTE (TSHyper @ Monday 17th November 2008 5:52 AM) <{POST_SNAPBACK}>
Ya'know, for all the years i have been hacking these games, i have never tested -Attract tongue.gif


Hehe, maybe we can also figure out "-0" (that's a 'zero') and "-X" smile.gif

Man, I really wish that the "-ATTRACT" parameter didn't crash after 45 seconds... it's extremely cool looking seeing C&C 'playing with itself' <G>. Not to mention, the original "RECORD.BIN" file had to be originally 'recorded' in some manner... wonder if Westwood had some sort of 'in-house' demo recorder of sorts that they used to create the file with smile.gif

(re: 'storefront demo') I wonder if there were any other demo/preview versions of C&C released, maybe one that this _actually_ would work without crashing. <AFAIK> the only demo version was v1.0a, dunno anything about the 'beta' version though.

Edited by Rich Nagel, Monday, 17 November 2008 - 12:08 PM.

  • 0

#8 BioBen

BioBen

    Ethnomusicologist

  • Members
  • 1,620 posts
  • Location:New Zealand

  • Favourite C&C:
    Renegade

Posted Tuesday, 18 November 2008 - 05:46 AM

Hey guys, I tried it out on my computer with TFD installed.
It kept requesting a disk, and only worked once i dug out my old C&C95 CD (GDI) and then the game booted up, but just sat there.
I then clicked multiplayer and the game Froze.
I can do some other tests if you want them, but I'm no good with this hacking ****, hurts my brain.
  • 0


QUOTE (gben @ Saturday 17th April 2010 1:37 PM) <{POST_SNAPBACK}>
all I could think was variations of photocopying your bum.


#9 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Tuesday, 18 November 2008 - 06:28 AM

QUOTE (BioBen @ Tuesday 18th November 2008 12:46 AM) <{POST_SNAPBACK}>
Hey guys, I tried it out on my computer with TFD installed. It kept requesting a disk, and only worked once i dug out my old C&C95 CD (GDI) and then the game booted up, but just sat there.


You were using the "-ATTRACT" parameter (just wondering, as we were also discussing the other unknowns, "-0" and "-X"), correct? If so, did you wait a full 60 seconds at the main menu (it takes that long in the DOS version for the self-running demo to kick in)?

Hehe, I've really been screwing around with this one for the past couple of days, and started using a digital cooking timer... so's I would have something to look at other than the main menu of the game before it kicked in <BG>.


QUOTE (BioBen @ Tuesday 18th November 2008 12:46 AM) <{POST_SNAPBACK}>
I then clicked multiplayer and the game Froze.


That's strange. In the DOS version, the only thing that caused the game to crash was after 45 seconds of the self-running demo.


(O.T. ramble) Man, I really wish there was some way to hack/enable a 'skirmish' mode for C&C1, using the 'computer AI Players' during a multiplayer game smile.gif Maybe if there was some way to fool the game into thinking there was actually two human players during a network game, but I dunno.

P.S. The recorded demo in question looks like there are computer AI players in it, as I see some of the AI taunts, e.g. "Beat me and I'll reboot!" etc..., at the top of the screen before the game crashes <G>.

Edited by Rich Nagel, Tuesday, 18 November 2008 - 06:29 AM.

  • 0

#10 CCHyper

CCHyper

    Agent x86

  • Command & Patch
  • 553 posts

Posted Tuesday, 18 November 2008 - 10:24 PM

Heh, you need to get C&C95 and have a nice chat with Nyer, he already made skirmish tongue.gif
  • 0

#11 Nyerguds

Nyerguds

    Colonel

  • Command & Patch
  • 2,176 posts
  • Location:Flanders (Belgium)

  • Favourite C&C:
    Command & Conquer

Posted Wednesday, 19 November 2008 - 12:00 AM

Hm... not sure how easy it'd be to recreate that on DOS. I'd first have to identify quite a lot of things for that. Well unless it's enough to just completely remove the "# of players" check. That just causes you to win right away when no other (either AI or human) players are present tongue.gif
Also, CTF with AI players would still not be possible... I really can't be arsed to re-do the entire game mode hack (changing Bases On/Off to include CTF and Mobile HQ modes, so these last 2 can be combined with the AI Players option)

it'd be loads simpler if you just bought TFD though. Here's what you're missing so far:
http://nyerguds.arsa...html#changelist
with more coming pretty soon:
http://forums.comman...t/501.page#5421

QUOTE (BioBen @ Tuesday 18th November 2008 6:46 AM) <{POST_SNAPBACK}>
Hey guys, I tried it out on my computer with TFD installed.
It kept requesting a disk, and only worked once i dug out my old C&C95 CD (GDI)

Obviously. TFD itself starts the game with the -cdCOVERT parameter to make the game play off your hard disk (though just a dot (.) instead of the "COVERT" works fine). If you want to test something like this you need to add BOTH parameters.

Edited by Nyerguds, Wednesday, 19 November 2008 - 12:33 AM.

  • 0
Posted Image

#12 BioBen

BioBen

    Ethnomusicologist

  • Members
  • 1,620 posts
  • Location:New Zealand

  • Favourite C&C:
    Renegade

Posted Wednesday, 19 November 2008 - 02:55 AM

Yeah i was doing the -attract thing

So i need "C&C95.exe -cdcovert -attract"?
And will i need the disk inserted?

EDIT:
I tried the above, and still needed the disk.
I got the same effect, no demo after 60 seconds, but this time no freeze.
Also none of the extra missions or skirmish options were available.
PS i have Nyerguds' patches installed.

Edited by BioBen, Wednesday, 19 November 2008 - 03:06 AM.

  • 0


QUOTE (gben @ Saturday 17th April 2010 1:37 PM) <{POST_SNAPBACK}>
all I could think was variations of photocopying your bum.


#13 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Wednesday, 19 November 2008 - 05:01 AM

QUOTE (Nyerguds @ Tuesday 18th November 2008 7:00 PM) <{POST_SNAPBACK}>
Hm... not sure how easy it'd be to recreate that on DOS. I'd first have to identify quite a lot of things for that. Well unless it's enough to just completely remove the "# of players" check. That just causes you to win right away when no other (either AI or human) players are present tongue.gif


I think that simply removing the number of players check would prolly do the trick smile.gif Don't spend any additional time or work with it, but do you already know or have documented what the hex offsets and values should be for the GAME.NEW file?


QUOTE (Nyerguds @ Tuesday 18th November 2008 7:00 PM) <{POST_SNAPBACK}>
Also, CTF with AI players would still not be possible


Understood, I kinda figured on that.


QUOTE (Nyerguds @ Tuesday 18th November 2008 7:00 PM) <{POST_SNAPBACK}>
Here's what you're missing so far:
http://nyerguds.arsa...html#changelist
with more coming pretty soon:
http://forums.comman...t/501.page#5421


Man! That's a lot of great modifications! smile.gif

  • 0

#14 Nyerguds

Nyerguds

    Colonel

  • Command & Patch
  • 2,176 posts
  • Location:Flanders (Belgium)

  • Favourite C&C:
    Command & Conquer

Posted Wednesday, 19 November 2008 - 06:29 AM

QUOTE (BioBen @ Wednesday 19th November 2008 3:55 AM) <{POST_SNAPBACK}>
Yeah i was doing the -attract thing

So i need "C&C95.exe -cdcovert -attract"?
And will i need the disk inserted?

EDIT:
I tried the above, and still needed the disk.
I got the same effect, no demo after 60 seconds, but this time no freeze.
Also none of the extra missions or skirmish options were available.
PS i have Nyerguds' patches installed.

Huh odd.. you should need
"C&C95.exe" -cd. -ATTRACT

How are you starting this?

The easiest way is to make a shortcut to C&C95.exe and adding the parameters in its properties...
startgame.png

What do you mean with 'skirmish options' though? C&C95 has no skirmish options; Skirmish is simply LAN with AI players enabled and without human players

Edited by Nyerguds, Wednesday, 19 November 2008 - 06:34 AM.

  • 0
Posted Image

#15 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Wednesday, 19 November 2008 - 02:00 PM

QUOTE (Nyerguds @ Wednesday 19th November 2008 1:29 AM) <{POST_SNAPBACK}>
What do you mean with 'skirmish options' though? C&C95 has no skirmish options; Skirmish is simply LAN with AI players enabled and without human players


Yep, that's exactly what I mean. The ability to start a LAN game with only one human player, and having the game place AI players on the map smile.gif

  • 0

#16 BioBen

BioBen

    Ethnomusicologist

  • Members
  • 1,620 posts
  • Location:New Zealand

  • Favourite C&C:
    Renegade

Posted Wednesday, 19 November 2008 - 10:56 PM

Sorry about the confusion, i just meant the option to play skirmish.
  • 0


QUOTE (gben @ Saturday 17th April 2010 1:37 PM) <{POST_SNAPBACK}>
all I could think was variations of photocopying your bum.


#17 Nyerguds

Nyerguds

    Colonel

  • Command & Patch
  • 2,176 posts
  • Location:Flanders (Belgium)

  • Favourite C&C:
    Command & Conquer

Posted Thursday, 20 November 2008 - 12:28 AM

Bioben: again... C&C95 never HAD any skirmish option, and my patch doesn't add that either. It just allows LAN games to start without human players if AI players are used instead

Rich Nagel: I was talking about BioBen's post.

This hack removes the number of players check in DOS C&C v1.22:
89ABA: 75 EB

You'll have to enable IPX in DOSBox to get the Network option though.

Attached Thumbnails

  • game_006.png

Edited by Nyerguds, Thursday, 20 November 2008 - 12:45 AM.

  • 0
Posted Image

#18 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Thursday, 20 November 2008 - 05:42 AM

QUOTE (Nyerguds @ Wednesday 19th November 2008 7:28 PM) <{POST_SNAPBACK}>
This hack removes the number of players check in DOS C&C v1.22:
89ABA: 75 EB


YOU DA MAN, Nyerguds!!! It works perfectly, wooohoo!!! smile.gif This is exactly what I was looking for smile.gif


QUOTE (Nyerguds @ Wednesday 19th November 2008 7:28 PM) <{POST_SNAPBACK}>
You'll have to enable IPX in DOSBox to get the Network option though.


Actually, I'm not running DOSBox on any of my old boat-anchor PCs <G>, but rather use some old 'dummy' DOS IPX drivers "NE2000.COM" and "IPX.COM"... works like a champ smile.gif


P.S. Hehe, man... those AI players can be quite insulting with thier rude taunts <LOL>!

  • 0

#19 Nyerguds

Nyerguds

    Colonel

  • Command & Patch
  • 2,176 posts
  • Location:Flanders (Belgium)

  • Favourite C&C:
    Command & Conquer

Posted Thursday, 20 November 2008 - 08:40 AM

"Beat me and I'll reboot!"
"YOU're artificial intelligence!"
:P
  • 0
Posted Image

#20 Rich Nagel

Rich Nagel

    Private 1st Class

  • Members
  • 132 posts

  • Favourite C&C:
    Command & Conquer

Posted Thursday, 20 November 2008 - 07:01 PM

Man, I'm having a ball with this! smile.gif

Hehe, took some of the stock missions (campaign, as well as Covert), did a little INI editing, renamed to SCM??EA.*, and let 'er rip <LOL>! smile.gif

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


Hosted by Freedom Studios
eXTReMe Tracker