* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Gametype compatibility keywords for level?
PostPosted: Mon Jul 02, 2007 12:39 pm 
Offline
DBB Material Defender
DBB Material Defender
User avatar

Joined: Tue Nov 23, 2004 3:31 pm
Posts: 4900
Location: Denver, Colorado, USA
I'm almost done with the code for a new D3 gametype (a new .d3m) I'm developing. I don't want to give away the details yet, so let's call it \"FoilGame\".

Anyway, someone who is designing a level for this new gametype asked me, \"What should I put in for the compatibility keyword? (i.e. The thing that says which gametypes a level is compatible with.)\" Honestly, I have no idea, since my knowledge of D3Edit and level design is minimal.

In the code, I have the gametype string as \"FoilGame\", and I built a function that validates whether the level has all the right rooms/objects/etc. But I don't know where that compatibility keyword (in D3Edit in the Quicktest window, I'm told) comes into play.

Can someone fill me in on this?


Top
   
 Post subject:
PostPosted: Mon Jul 02, 2007 1:17 pm 
Offline
DBB Captain
DBB Captain
User avatar

Joined: Sat Apr 26, 2003 2:01 am
Posts: 561
ICQ: 41102315
Website: http://www.planetdescent.com/asp/profileview.asp?pilotid=77&alpha=F
AOL: Floyddle
Location: Germany
that keyword has to be manually added within the msn file, it can be done with the editor (quicktest/mn3-edit). note that it can be only a single word, not two, at least i haven't gotten more than one to work.
checking for the rooms and/or objects isn't necessary, since it will quit if the keyword is not found. though it's good practice to write such functions ;).
you MIGHT have to add that keyword to the keyword check, though i don't remember that being necessary.


Top
   
 Post subject: Re:
PostPosted: Mon Jul 02, 2007 1:36 pm 
Offline
DBB Material Defender
DBB Material Defender
User avatar

Joined: Tue Nov 23, 2004 3:31 pm
Posts: 4900
Location: Denver, Colorado, USA
Floyd wrote:
checking for the rooms and/or objects isn't necessary, since it will quit if the keyword is not found. though it's good practice to write such functions ;).


The entropy code does just that; I'm doing something similar.

Floyd wrote:
you MIGHT have to add that keyword to the keyword check, though i don't remember that being necessary.


Keyword check? Hmm, maybe I just missed it. Can you point me to it in the D3-SDK Anarchy code (which is what I am using as a base)?


Top
   
 Post subject:
PostPosted: Mon Jul 02, 2007 1:56 pm 
Offline
DBB Captain
DBB Captain
User avatar

Joined: Sat Apr 26, 2003 2:01 am
Posts: 561
ICQ: 41102315
Website: http://www.planetdescent.com/asp/profileview.asp?pilotid=77&alpha=F
AOL: Floyddle
Location: Germany
Code:
void DLLFUNCCALL DLLGetGameInfo (tDLLOptions *options)
...
strcpy(options->requirements,\"\");      // the MSN file KEYWORD requirements
...

fill your mod name into the empty string, that's it :).


Top
   
 Post subject:
PostPosted: Mon Jul 02, 2007 2:09 pm 
Offline
DBB Material Defender
DBB Material Defender
User avatar

Joined: Tue Nov 23, 2004 3:31 pm
Posts: 4900
Location: Denver, Colorado, USA
Ah, thanks! :D

I think I may have already done that, in fact. For some reason, I was thinking that line referred to the name which shows up in game browsers/trackers. :roll:


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group