Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 5 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Soldier of Fortune
Category: SoFII Mapping
Mapping, modeling, scripting, skinning and all forms of editing for the game Soldier of Fortune II
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: Code Tutorial - How to create a gametype
Hoovilation~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 02:01 pm
Edit the 'gt_assassinate.q3asm' so that the first line reads -o "gt_assasinate"

What problems are you having exactly?  If you have your pk3 ready try to just drop it in the base folder temporarily and then run sof2 and go to create server, check to make sure the gametype Assasinate shows up.
Share |
5.45caliberguy~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 03:10 pm
My problem now is that after editing gt_main.c ,the code wont compile anymore and then if i replace the gt_main.c with origenal then it compile again ,so maby there is somethin wrong in the code ??
Share |
Hoovilation~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 05:31 pm
When you go to run gt_assasinate.bat what errors are you getting?  If you are just double clicking on the .bat file then go to a dos prompt and run it from there so you can get a display of what is happening and where the error occurs and why.
Share |
5.45caliberguy~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 05:56 pm


25: vmCvar_t gt_flagReturnTime;;
145: gametype.currentleader = clients[gametype.leader];
170: if(arg0 == gametype.currentleader)

U can do anything with this info?


gt_flagReturnTime???  in elim?
Share |
Hoovilation~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 07:20 pm
You can remove vmCvar_t gt_flagReturnTime;; from 'gt_main.c' for it is not even defined in cvarTable_t nor used.

As for your currentleader error did you set it up in 'gt_local.h'?  If you did you probably defined it as
Code Sample

int currentLeader;

and what you are using is
Code Sample

currentleader
Share |
5.45caliberguy~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 07:33 pm
this is my gt_local.h

// Copyright © 2001-2002 Raven Software.
//
// gt_local.h -- local definitions for gametype module

#include "../../game/q_shared.h"
#include "../gt_public.h"
#include "../gt_syscalls.h"

typedef struct gametypeLocals_s
{
int time;
int leader;
int currentLeader;
} gametypeLocals_t;

extern gametypeLocals_t gametype;
Share |
Hoovilation~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 07:38 pm
I already answered this question please go look at your code and compare it to what you have defined in 'gt_local.h'
Share |
5.45caliberguy~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 08:01 pm


Is there someone ho tried this tutorial and have it work?
Share |
GODh~rb
General Member
Since: Dec 23, 2006
Posts: 1228
Last: Dec 23, 2006
[view latest posts]
Level 8
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 09:05 pm
With other words: currentLeader <> currentleader (see picture) :p
Share |
5.45caliberguy~rb
General Member
Since: Dec 23, 2006
Posts: 19
Last: Dec 23, 2006
[view latest posts]
Level 1
Category: SoFII Mapping
Posted: Wednesday, Apr. 30, 2003 09:10 pm
hehe even when i change that its not compiling, but i am gonna do this tut again tomorrow  :)
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Soldier of Fortune : SoFII Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»