It is currently Sun May 19, 2013 11:36 am

All times are UTC - 8 hours




Post new topic Reply to topic  Page 1 of 2
 [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Programmers sheet
PostPosted: Fri Aug 04, 2006 10:43 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
I suppose KH game programmers need some sticky thread to make announcements about their updates for each other - to make everyone who's programmin aware of it. I do not mean announcing every new variable or line of code, but only important changes.

_________________
- Our necromancers' team have already prepared everything for the Rebirth Ritual. Soon Holy Lenin will be back with us!
- Perfect. I shall report to Magistre Stalin immediately.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 04, 2006 11:18 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
Korax Arena
======================

I have changed all the numerals meaning game mode that I met in progs for enumerated id-s defined in hexendefs.vc (game_dm, game_sweep etc). That will make much more easier to modify indexation and order in which game modes are listed.

From now, please, if you wish to check game mode, use enumerated id from hexendefs.vc. For example:

Code:
if (deathmatch == game_football)
{
     ......
}


There's also a constant NUMGAMESNOTEAM. If gamemode id is lower than NUMGAMESNOTEAM, it is "one-for-one" game mode. If it is equal or larger than NUMGAMESNOTEAM, it is team gameplay.

_________________
- Our necromancers' team have already prepared everything for the Rebirth Ritual. Soon Holy Lenin will be back with us!
- Perfect. I shall report to Magistre Stalin immediately.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 05, 2006 1:38 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
Korax Arena
======================

Changed MorphPlayer function, now it looks like this:
MorphPlayer(int pclass, classid moclass, bool timed, bool until_death)

(Suppose that all the parameters there are self-explanatory)

_________________
- Our necromancers' team have already prepared everything for the Rebirth Ritual. Soon Holy Lenin will be back with us!
- Perfect. I shall report to Magistre Stalin immediately.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 05, 2006 7:04 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
Korax Arena
======================

There are new classes: Sequencer, GameSequencer and SoundQueue.

Sequencer is simply a Thinker that runs some function periodically (using defined frequency).
GameSequencer - derived from Sequencer and calls Game::HandleGameEvent with predefined parameters. It may be used in Game classes (GameFootball, GameKTH and others if there'll be any) to launch timed sequences, because Game is derived directly from Object and does not have Tick function. (There can be any number of Sequencers created at a time).
SoundQueue - used to play local sounds, like announcements, so that they do not override each other - i.e. one by one. MainGameInfo now has one SoundQueue as Announcer reference. Generally QueueSound() function is to be used to put new local sound into queue.

_________________
- Our necromancers' team have already prepared everything for the Rebirth Ritual. Soon Holy Lenin will be back with us!
- Perfect. I shall report to Magistre Stalin immediately.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 10:08 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
Korax Arena
======================


I have noticed that one of our game modes - castle sweep has 0 (zero) index and is treated as single player by original Hexen maps' scripts. Thus I specially defined zero index as unused game mode.

Regarding earlier implemented features: SoundQueue is now moved to client side and implemented as LocalSoundQueue. To call local sound from server use MainGameInfo::BroadcastLocalSound (play local sound for all players) or Player::CallLocalSound.

_________________
- Our necromancers' team have already prepared everything for the Rebirth Ritual. Soon Holy Lenin will be back with us!
- Perfect. I shall report to Magistre Stalin immediately.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 5:01 am 
Offline
2D Artist
2D Artist
User avatar

Joined: Thu Apr 25, 2002 12:01 am
Posts: 3105
Location: Mexico
The latest SVN revision of the Vavoom engine has added support for dynamic arrays, which was needed for KA IIRC, also, I don't know why, but the team selection screens stopped working with the latest network code, I've tried to find the problem myself, but I was unable to do it right :( .

I'll upload the new version of VCC and Vavoom executable later today, so you can download it and test it out :).

_________________
I'm the ruler of the Fire Power.....


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 8:34 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
Thanks, i was just going to begin coding for KH again :).

_________________
- Our necromancers' team have already prepared everything for the Rebirth Ritual. Soon Holy Lenin will be back with us!
- Perfect. I shall report to Magistre Stalin immediately.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 4:32 am 
Offline
2D Artist
2D Artist
User avatar

Joined: Thu Apr 25, 2002 12:01 am
Posts: 3105
Location: Mexico
They are uploaded now, the dynamic arrays have two functions Insert and Remove, if you have anymore questions you can post them here :).

EDIT: Uploaded new version of both EXE and VCC, it allows the use of iterators, which should make certain things a bit faster ;).

_________________
I'm the ruler of the Fire Power.....


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 14, 2007 11:57 pm 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
Korax Arena
======================


Important - GameInfo::deathmatch variable is treated as BOOLEAN in Vavoom now, so it cannot be used to store actual game type (it will be always '1' in KA). Thus I added new parameter - that is MainGameInfo::GameType, which is integer and is initialized by CVar 'deathmatch'.
If you simply need to check whether it is a multiplayer, you may still use GameInfo::deathmatch ( IIRC '0' - is single player story, '1' - multiplayer mode); but if you need to know exact game type, use MainGameInfo::GameType instead.

_________________
- Our necromancers' team have already prepared everything for the Rebirth Ritual. Soon Holy Lenin will be back with us!
- Perfect. I shall report to Magistre Stalin immediately.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 9:05 am 
Offline
Lead Programmer
Lead Programmer
User avatar

Joined: Sat Oct 06, 2001 12:01 am
Posts: 564
Location: Limassol, Cyprus
It should not be boolean, fixing it now.

_________________
You may think you can fly, but you better not try...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 15, 2007 9:38 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
Umm... nice. :wink:
Need to revert whole thing back then.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 09, 2007 7:11 pm 
Offline
2D Artist
2D Artist
User avatar

Joined: Thu Apr 25, 2002 12:01 am
Posts: 3105
Location: Mexico
Notice for everyone using our SVN repository, SF.net changed the location of the SVN repository to "https://korax.svn.sourceforge.net/", take note of this or you won't be able to get the latest code.

If you are using TortoiseSVN just right click on the local folder where you have the code and then look at the "relocate" option, then just change the address from what you have to look like the one I posted here and you'll be done, if there's any problems with these let me know and I'll try to help you out :).

_________________
I'm the ruler of the Fire Power.....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 10:29 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
And what about vavoom repository?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 10:30 am 
Offline
Programmer
Programmer
User avatar

Joined: Tue Nov 08, 2005 3:53 am
Posts: 2374
Location: St. Petersburg, Russia
And what about vavoom repository?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 10:44 am 
Offline
Project Lead
Project Lead
User avatar

Joined: Thu Jun 28, 2001 12:01 am
Posts: 5031
Location: Zurich, Switzerland
And what about vavoom repository?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 2
 [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group pozycjonowanie
Chronicles phpBB2 theme by Jakob Persson. Stone textures by Patty Herford.
With special thanks to RuneVillage