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

All times are UTC-06:00



Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: How to get D3 Matcens to work?
PostPosted: Fri Jan 18, 2008 12:30 pm 
Offline
The Feline Menace
User avatar

Joined: Thu May 24, 2007 12:49 pm
Posts: 2625
Website: http://vertigofox.bandcamp.com
Location: the realms of theory
I'm working on an SP level for D3. I've tried to make matcens, but they don't work. Could someone point me to a tutorial, or just describe how to implement matcens in D3 levels?


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 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
i'm almost certain that you'd have to get DALLAS to work first. this link has info on to how: http://www.gameedit.net/?q=node/18
note that only gcc versions <=2.8.1 work. search the archives here or on planetdescent forums for older threads on DALLAS installation if it doesn't work.
you can then script such a matcen in dallas to your liking.


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 2:12 pm 
Offline
The Feline Menace
User avatar

Joined: Thu May 24, 2007 12:49 pm
Posts: 2625
Website: http://vertigofox.bandcamp.com
Location: the realms of theory
COD D3 had working matcens, but it was entirely unscripted. What I really need to know first is how to create a matcen. I think that's where the problem lies, but I've tried everything I can think of.


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 2:17 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Thu Nov 22, 2001 3:01 am
Posts: 9205
WLM: biffski@yahoo.com
Location: Beaverton, Oregon USA
There is a way to add some basic triggers without scripting. It's rather limited, but it works. As memory serves, it's in properties in the item dropdown menu.


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 2:24 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Fri May 28, 1999 2:01 am
Posts: 5426
ICQ: 28874658
Website: http://www.povterminal.net/
Location: Bellevue, WA
I've managed to get DALLAS to work with a recent MinGW version, but it does take some tweaking.


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 2:52 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
would you enlighten us about how, Sirius? :)

oh, and matcens: open the menu \"Window\" in the editor, then click \"Matcens\". you can give objects new names in the object bar and i assume you assign those in the matcen menu. no DALLAS necessary.
you take it from here :)


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 5:21 pm 
Offline
DBB Master
DBB Master
User avatar

Joined: Fri May 28, 1999 2:01 am
Posts: 5426
ICQ: 28874658
Website: http://www.povterminal.net/
Location: Bellevue, WA
Apparently (it's been a little while since I did it, had to check), I made some alterations to the virtualgcc program to get it to run the right tools and recompiled it.

If it's any help:
Code:
--- virtualgcc_old.cpp   1999-06-17 15:52:30.000000000 +1200
+++ virtualgcc.cpp   2007-06-10 21:33:14.579125000 +1200
@@ -72,6 +72,7 @@
 #include <string.h>
 #include <assert.h>
 #include <stdarg.h>
+#include <ctype.h>
 
 typedef enum{DEBUG_NONE=0,DEBUG_COFF,DEBUG_CSEVEN}Debug_type;
 char Source_filename[_MAX_PATH];
@@ -331,12 +332,12 @@
 char DebugLevelString[32];
 char ChecksumString[64];
 
-void main (int argc, char *argv[])
+int main (int argc, char *argv[])
 {
    output(\"Virtual GCC Compiler layer for Descent 3\\n\");
    output(\"Copyright 1999 Outrage Entertainment\\n\");
    if(!CollectArguments(argc,argv))
-      return;
+      return 0;
    
    STARTUPINFO         si   = {0};
    // Make child process use this app's standard files.
@@ -367,7 +368,7 @@
    }
 
    if(missing_variables){
-      return;
+      return 0;
    }
 
    if(Level_DLL_build){
@@ -431,6 +432,8 @@
    output(\"Done.\");
 
    SetCurrentDirectory(old_path);
+   
+   return 1;
 }
 
 bool Step1(STARTUPINFO *si)
@@ -451,7 +454,7 @@
    MakePath(output_dllinit,Working_directory,filename,NULL);
    
    //build script
-   sprintf(command_line,\"gcc.exe -I. -I%s -mwindows -o %s -c %s %s %s %s\",Working_directory,output_object,Source_filename,WarningLevelString,ChecksumString,DebugLevelString);
+   sprintf(command_line,\"c++.exe -I. -I%s -mwindows -o %s -c %s %s %s %s\",Working_directory,output_object,Source_filename,WarningLevelString,ChecksumString,DebugLevelString);
    bRet = CreateProcess (NULL, command_line, NULL, NULL, TRUE, 0, NULL, NULL, si, &pi);
    if (bRet){
       WaitForSingleObject (pi.hProcess, INFINITE);
@@ -468,7 +471,7 @@
    }
 
    //add dllinit function
-   sprintf(command_line,\"gcc.exe -I. -I%s -mwindows -o %s -c %s %s %s\",Working_directory,output_dllinit,DLLInit_filename,WarningLevelString,DebugLevelString);
+   sprintf(command_line,\"c++.exe -I. -I%s -mwindows -o %s -c %s %s %s\",Working_directory,output_dllinit,DLLInit_filename,WarningLevelString,DebugLevelString);
    bRet = CreateProcess (NULL, command_line, NULL, NULL, TRUE, 0, NULL, NULL, si, &pi);
    if (bRet){
       WaitForSingleObject (pi.hProcess, INFINITE);
@@ -495,7 +498,7 @@
 
    // build up the command line
    char command_line[256];
-   sprintf(command_line,\"dllwrap.exe --export-all --def %s -o %s %s %s -mwindows\",Def_filename,Output_filename,output_object,output_dllinit);
+   sprintf(command_line,\"dllwrap.exe --driver-name c++ --export-all --def %s -o %s %s %s -mwindows\",Def_filename,Output_filename,output_object,output_dllinit);
 
    bRet = CreateProcess (NULL, command_line, NULL, NULL, TRUE, 0, NULL, NULL, si, &pi);
    


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 5:55 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
i see. thanks :)


Top
   
 Post subject:
PostPosted: Fri Jan 18, 2008 6:09 pm 
Offline
DBB Ace
DBB Ace
User avatar

Joined: Sat Feb 11, 2006 9:57 pm
Posts: 461
Website: http://www.prepare4descent.net
Location: NH
There is no need to run DALLAS to get a matcen working... but the setting are many and not default.


First, name the room you want the matcen in, using either Room properties or 'IO', and take note of the face you want to the effect to spawn from. The spawned object will spawn at the room center.

Windows>Matcens opens the Matcen dialog,

'Attach' tab: 'Attach type': set to 'Room and faces', 'Attach Room/Object': your matcen room. For 'Spawn points' enter 1 or more in 'Quantity', then list the face(s) below that.

In the 'Produce' tab, set Number of Object types to 1 or more, then you can select the objects from the drop-downs. Set Qty. to the total number of each object to be produced in the life of the Matcen. When to produce is self explanatory, below that you must set the Maximum objects produced and Number of Alive children to 1 or more. Don't forget to check the 'Enabled' box!

There is no need to change anything in the 'Display' tab, but you can change the visual and sound effects here if you want.

Matcen Tut at DescentiaPedia.

D3 Level Editing at Prepare For Descent.

_________________
Prepare For Descent! | Planet Descent


Top
   
 Post subject:
PostPosted: Tue Jan 22, 2008 12:23 pm 
Offline
The Feline Menace
User avatar

Joined: Thu May 24, 2007 12:49 pm
Posts: 2625
Website: http://vertigofox.bandcamp.com
Location: the realms of theory
Thanks, I got it working.


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

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


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