Author Topic: Demo build  (Read 4327 times)

0 Members and 1 Guest are viewing this topic.

Offline Inquisitor

RT is gonna take a crack at getting our build to work with the Demo VPs

If anyone has any suggestions, let us know here.
No signature.

 

Offline RandomTiger

  • Senior Member
  • 211
I think I may have bitten off more than I can chew.
There are 192 instances of the FS2_DEMO defines.
Some of them are comments, a lot of them are cutdowns of the engine, ie smaller maximums which should just be able to come straight out.

However the tricky bit where I am out of my depth is the tables.
The demo code did not compile as such, and any fix attempts cause a crash processing the medal table.

If theres any code history in fs2_open thats revelent to this I could do with knowing.

I will look into this more, but ultimately my time would be better spent continuing on the DX8 stuff if this drags on too much.

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
can we legally take the demo tables and modify them so it works?
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Inquisitor

I'd like to just get a version that works with the vanilla demo VP's that we can multi on and allow people to add custom content.

I guess it's time to document those 192 instances and check em all out :)

I agree RT, your time is probably better spent on the DX stuff, maybe one of the new guys?
No signature.

 

Offline RandomTiger

  • Senior Member
  • 211
Oh well, at least I got a look at some different code.
Like I say most the the demo code paths just take out graphical effects or detail. I guess maybe they wanted the demo to run nice and fast to keep everyone interested.

But I couldnt get to that code cos you have to deal with the table problems first. I doupt anyone will manage to get one exe that will run both FS2 full and demo data without some nasty command flag or changing the demo table data.

Tricky one, might be an idea to work closely with a MOD guy on this one.

 
You can almost cut and paste from our branch. Even the one that you guys have in your CVS does the demo.  It's something like 10 lines of code to get the demo working.

Edit: Oh, you're trying to get demo and full version working in the same executable.... good luck.
« Last Edit: October 05, 2002, 07:26:46 pm by 777 »

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
well hell we don't even have know how to get FSO working for most mods, I think it would be better to figure out what things need to be fixed to get most mods working well.
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Inquisitor

I figured it would be worth looking into getting the demo to work with the same exe, failing that, make the demo exe able to do some more "retail" like things :)
No signature.

 

Offline RandomTiger

  • Senior Member
  • 211
Any chance of seeing those 10 lines of code? :)

 

Offline DTP

  • ImPortant Coder
  • 28
    • http://www.c4-group.dk
Quote
Originally posted by RandomTiger

However the tricky bit where I am out of my depth is the tables.
The demo code did not compile as such, and any fix attempts cause a crash processing the medal table.


I think the one of medal names where exactly one charachter too long in the demo.

i recall Dave and the developers discussion this on that external community chat.
VBB member; reg aug 1999; total posts 600.
War is a lion, on whos back you fall, never to get up.
Think big. Invade Space.

 

Offline Inquisitor

Yeah, that's the problem DTP, just need to actually go in and do something about it :)
No signature.

 

Offline RandomTiger

  • Senior Member
  • 211
The next problem is the weapons table.
Though please dig up that discussion if you can.

 

Offline DTP

  • ImPortant Coder
  • 28
    • http://www.c4-group.dk
well, it was not a chat, but rather that section of Fs2.com called bugfixoftheday

anway here is the link

http://www.freespace2.com/bfod.cfm

and a quote from that

-----------
9.14.99
Item #: 4096
Original Date: 9/2/99
From: Jim Boone to Jim Boone
[Freespace 2] Dave, I'm not sure which programmer I should assign this to so I was hoping you could pass this to the relevant person. I set up and event to give the "Distinguished Inelligence Cross" for a loop mission and Fred crashed with the following error:


Jeff Farris: I got $10 that says this is the "no-room-for-null-terminator" wackiness that was discussed a while back.

Dave Baranec: This medal name is exactly one charcater too long.

Jim Boone: Well Jason, looks like we need a new name. Any ideas?

Jason Scott: Hm. Can we just call it "Intelligence Cross" in the table and "Distinguished Intelligence Cross" in the debriefing?

Dave Baranec: How about "Conspicuous Intelligence Cross" ? That fits.

Anoop Shekar: Yeah, but would you want an Intelligence Cross to be conspicuous?

Jason Scott: Let's just leave it Intelligence Cross. I don't want to touch the debriefing.

Jasen Whiteside: Good call. Make it so.

Jim Boone: Done.

And you thought putting medals into the game was simple!
 
-------
unquote
« Last Edit: October 06, 2002, 11:47:46 am by 508 »
VBB member; reg aug 1999; total posts 600.
War is a lion, on whos back you fall, never to get up.
Think big. Invade Space.

 

Offline DTP

  • ImPortant Coder
  • 28
    • http://www.c4-group.dk
Quote
Originally posted by RandomTiger
The next problem is the weapons table.
Though please dig up that discussion if you can.


Did you correct the #define MAX_WEAPONS 100 in weapons.h
VBB member; reg aug 1999; total posts 600.
War is a lion, on whos back you fall, never to get up.
Think big. Invade Space.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Quote
Dave Baranec: How about "Conspicuous Intelligence Cross" ? That fits.

Anoop Shekar: Yeah, but would you want an Intelligence Cross to be conspicuous?

:lol:
-C

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
dave si teh funney
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
You probably already know this, but in case you don't, the game apparently verifies tables using checksums in a debug build and the checksums for demo 1 are commented out. It also looks like the demo's code split off from the FS2 tree. Whether it was ever merged back in or not, and exactly what changes were made, I don't know. (Comments in FreeSpace.cpp.)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Inquisitor

Yeah, I have been diggin thru it to see what's up with that.
No signature.

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
I believe the medal bug in Bugzilla is caused by differences in the demo's medals.tbl file.

Code: [Select]
required_string("$Wavefile Base:");
stuff_string(Badge_info[bi].voice_base, F_NAME, NULL, MAX_FILENAME_LEN);

//required_string("$Wavefile 2:");
//stuff_string(Badge_info[bi].wave2, F_NAME, NULL, MAX_FILENAME_LEN);


From the above code it looks like they replaced "$Wavefile 1:" with "$Wavefile Base:" for the release version. That bug's error message would be the error message thrown by required_string() when it can't find the string it needs. :)

(FYI, I'm posting this here 'cause I have no idea how I could add a comment to the Bugzilla one.)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Inquisitor

I'd need to add your account to bugzilla as a developer :)

Wanna be a developer (been a while since i asked you :))?
No signature.