Raised This Month: $51 Target: $400
 12% 

News: Info for developers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-25-2009 , 23:34   News: Info for developers
Reply With Quote #1

New develop environment for Zombie:Reloaded
We're cleaning up or repository and making a little develop environment. It will mostly be stand-alone, but it also requires a few tools to be installed.

There are defines that can be disabled so the plugin will compile during the migration. For the moment that define is "ADD_VERSION_INFO" in zombiereloaded.sp (explained in the code).

Script for dumping version info
Because of people compiling from unreleased snapshots, I've made a new feature in ZR for dumping detailed version info. There's also a new public cvar that we will use to track spesific snapshots on servers around the world. The command is "zr_version" and should give nice output like this:

Code:
Zombie:Reloaded
Copyright (C) 2009  Greyscale, Richard Helgeby

Version:            3.0.0-b2-dev
Development branch: zr-3.0.0-b2
Revision:           442:175f7f533960
License:            GNU GPL, Version 3
Compile date:       Sun Aug 23 06:26:58 CEST 2009
The new public cvar is "zombiereloaded_revision" and should in this case be "442:175f7f533960".

To get this info we have a script that dump various stuff in a new file (hgversion.h.inc) and makes some defines that's included when compiling.

Since we develop on both windows and linux, we had to make scripts for both platforms. Windows batch scripts is a hell to me, but a friend came up with a idea using cygwin so I could run the linux shell script on windows. The new environment has a mini-cygwin bundled with just the tools we need, and it's working great.

Before compiling the plugin, the script must be executed so it will generate the include file for us. There are scripts for windows and linux that will take care of this. Use compile.bat on windows or make in linux, they should take care of everything.

In the release packages the source is included and ready to be compiled. It's marked as a unofficial build so we can track what builds that's ours and not.

Resources
I have automated builds for the latest revision. Note that snapshots on the dev-branch may not be working.

How to submit patches to us
2010.09.23 - Documents for zr-dev
Here I'll put some documents to help understanding the new plugin architecture we're working on.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 09-22-2010 at 23:20.
rhelgeby is offline
Send a message via MSN to rhelgeby
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode