Rune Central
http://forums.runequake.com/

Adding maps to a RQW Server
http://forums.runequake.com/viewtopic.php?f=1&t=946
Page 1 of 1

Author:  Spitfire [ Tue Oct 18, 2005 7:07 pm ]
Post subject:  Adding maps to a RQW Server

What file would I edit to add a map to rotation to our QW server? I want to add the "q1edge" map that ID Software made for Quake that was from their Quake2 "q2dm1" map. I see two files for Maps, but they seem to complex for me to be editing.

Author:  Slot Zero [ Tue Oct 18, 2005 7:56 pm ]
Post subject: 

You'll need to modify the map script in the src folder and compile a new map-auto.qc file. This can be done in three steps.

First step, replace the custom level array with your own.

Look for this portion of code inside the map script:

Code:
my @custom_lev = (
   [], # unused

   [ # small
      'waltz',
      'haunted',
      'kjdm11',
      'bless',
      'pkeg2',
      'strafin4',
      'qcon1',
      'ztndm3',
      'ztndm5',
      'dapak9',
      'kjdm13',
      'aerowalk',
      'ztndm6',
      'pinion2',
      'ultrav',
      'baldm7',
      'crdm1',
      'dazdm11',
      'factory3',
      'gendm2',
      'rcdm7',
      'xntrick',
      'baldm6',
      'arena',
      'boxing',
      'break010',
      'deathole',
      'dethcrss',
      'dome7b',
      'field',
      'hockey',
      'mortis',
      'muny03',
      'muny10',
      'pain',
      'pasta',
      'warzone',
   ],

   [ # medium
      'atlantis',
      'nindm2',
      'park',
      'alkdm04',
      'ritual',
      'lacrima',
      'debello',
      'auhdm2',
      'matdm2',
      'prelude',
      'efdm9',
      'exdm3',
      'exdm4',
      'mjdm1',
      'lilith',
      'rf',
      'swk',
      'zed2',
      'q3dm6ish',
      'spear',
      'tridm1',
      'efdm7',
      'effigy',
      'spinev2',
      'efdm2',
      'lfdm1v11',
      'oma',
      'paddydm1',
      'tridm2',
      'armory2',
      'auhdm1',
      'jndm6',
      'a2',
      'dazdm12',
      'dranzdm6',
      'hip2m2',
      'hip2m3',
      'hipdm1',
      'start2',
      'baldm3',
      'chesdm2',
      'efdm10',
      'efdm13',
      'chillers',
      'cmania3',
      'dizzy',
      'dthspwn2',
      'efdm3',
      'flood',
      'g12',
      'highrise',
      'hillking',
      'house',
      'my_home',
      'warzone2',
   ],

   [ # large
      'kikdm3',
      'rtz',
      'jadm1',
      'deadzone',
      'croctear',
      'alk08dm',
      'tridm3',
      'summer',
      'elkdm2',
      'unddm2',
      'jvoxdm3',
      'strafin6',
      'dead',
      'fragtwn7',
      'hip1m1',
      'hip1m2',
      'hip1m4',
      'hip1m5',
      'hip2m1',
      'hip2m4',
      'hip2m5',
      'hip2m6',
      'hip3m1',
      'hip3m4',
      'q1edge',
      'sofdm1',
      'sofdm3',
      'disv1',
      'dranzdm7',
      'fragtwn5',
      'fragtwn6',
      'mncrdrug',
      'noircity',
      'oldwest',
      'triumph',
   ],
);


and replace it with this:

Code:
my @custom_lev = (
   [], # unused

   [ # small
      'q1edge',
   ],

   [ # medium
   ],

   [ # large
   ],
);


Second, delete the line that wipes out the array.

Directly under the code you just replaced, remove this line:

Code:
@custom_lev = ();


Last step, compile the map script to generate a new map-auto.qc

I think your servers are Linux, so just type

perl map > map-auto.qc

Done!

Take the newly created file and replace it with the one in your 'poq' folder. Compile as you normally would.

Author:  Spitfire [ Tue Oct 18, 2005 11:30 pm ]
Post subject: 

Got it all until the last part. I am on a Win XP Pro system, our servers run on a Win2K system. Not sure how to compile the file "map". Once I get there, I can get the rest. Or can you just compile me a new map-auto.qc for the QW folder. I just want "q1edge" to be added to the map rotation.

Author:  Slot Zero [ Wed Oct 19, 2005 5:14 am ]
Post subject: 

I compiled it for you and e-mailed it.

Author:  Spitfire [ Wed Oct 19, 2005 12:20 pm ]
Post subject: 

Thanks! Alot of work for one map, but I appreciate it!

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/