Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » SSGM plug-in release; Base Defence
SSGM plug-in release; Base Defence [message #273794] Tue, 17 July 2007 05:24 Go to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Much thanks to Whitedragon who made the linux version, his patience and help is un-measurable.

Anyone using the beta version of this should upgrade to this version. It is superior.


Promotional video:
http://www.mp-gaming.com/reborn/movies/rebBD.wmv

readme:
reborn's base defence plug-in readme


This is an SSGM plugin and thus requires SSGM to be installed on your server. Download and install SSGM from 
http://black-cell.net/downloads/index.php?act=category&id=6 if you haven't done so already.


I would like to state from the beginning that all I did here was port some old Dragonade 
code released by Vloktboky into a example plug-in created by whitedragon.
I fixed some bugs and improved it slightly, and added a couple more features. 
But basically this is at it's core, just dragonade code slapped into a plug-in, with some minor tweaks.


This is how it works:

On maps without base defence GDI get two guard towers, and Nod get two turrets. 
These are spawned by the server not a modified map.
If the defence gets killed then a little power up health icon appears near where the defence used to be.
If you are on the team that the defence belonged to, then you can walk over the power up 
and it will take 100 credits away from you, these credits will be added to a "team base defence fund". 
If you don't have 100 credits, it just takes what you have.
If it takes money from you then it will send you a private message thanking you for your donation, 
and also tell you what the current fund pool is.
If you are not on the team that owned the defence and walk over the power up object, 
then it will just respawn instantly doing nothing much at all.
When the "team defence pool" for that turret/tower reaches 2000 credits, then it will respawn the turret.


Just put "rebBD.dll" into your server directory along with "turretpositions.dat", and 
put the modified "objects.gm" file into your data directory (the servers directory, not your client).


Then modify ssgm.ini to load the rebDB plugin by adding "rebBD" to the plugin list. Search for "[Plugins]".



If you enjoy this plug-in, of have any comments/suggestions, then please visit http://www.mp-gaming.com



reborn


WIN32 Download:
http://www.mp-gaming.com/reborn/coderelease/SSGM_2.0.1_Base_Defence_Plug-in_win3 2.zip

Linux Download:
http://www.mp-gaming.com/reborn/coderelease/SSGM_2.0.1_Base_Defence_Plug-in_linu x.zip


Will be added on game-maps shortly.



Re: SSGM plug-in release; Base Defence [message #273797 is a reply to message #273794] Tue, 17 July 2007 06:03 Go to previous messageGo to next message
silentevil is currently offline  silentevil
Messages: 94
Registered: April 2005
Location: Germany Hamburg
Karma: 0
Recruit

nice release reborn mutch thanks Whitedragon thanks for the lunix version Wink !! Big Grin


greaz miklo Big Ups


why is a dll file by linux version ?

[Updated on: Tue, 17 July 2007 06:32]

Report message to a moderator

Re: SSGM plug-in release; Base Defence [message #273801 is a reply to message #273794] Tue, 17 July 2007 06:48 Go to previous messageGo to next message
silentevil is currently offline  silentevil
Messages: 94
Registered: April 2005
Location: Germany Hamburg
Karma: 0
Recruit

my lfds cant load the objets.gm wihtout objects.gm starting fine

idees ?
Re: SSGM plug-in release; Base Defence [message #273816 is a reply to message #273794] Tue, 17 July 2007 08:19 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
in SSGM.ini

Quote:


; ObjectsFile=
;
; Specifies the extension of the objects file to load, overrides the loading of the normal objects.ddb file.
; The default setting is gm, which makes it load the objects.gm file.
; Like most settings this can be changed in the map specific section. So the server can load a different objects file
; for each map without needing to temp anything, a feature the game originally lacked.
; Do not change this unless you know what you're doing. Must be 1-3 characters.
; Set this to ddb if your server is running a stand alone or full conversion mod.
; Windows FDS only.

ObjectsFile=gm




Re: SSGM plug-in release; Base Defence [message #273818 is a reply to message #273794] Tue, 17 July 2007 08:21 Go to previous messageGo to next message
silentevil is currently offline  silentevil
Messages: 94
Registered: April 2005
Location: Germany Hamburg
Karma: 0
Recruit

lol i have make it dont work
Re: SSGM plug-in release; Base Defence [message #273828 is a reply to message #273816] Tue, 17 July 2007 09:26 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
Reborn wrote on Tue, 17 July 2007 11:19

in SSGM.ini

Quote:


; ObjectsFile=
;
; Specifies the extension of the objects file to load, overrides the loading of the normal objects.ddb file.
; The default setting is gm, which makes it load the objects.gm file.
; Like most settings this can be changed in the map specific section. So the server can load a different objects file
; for each map without needing to temp anything, a feature the game originally lacked.
; Do not change this unless you know what you're doing. Must be 1-3 characters.
; Set this to ddb if your server is running a stand alone or full conversion mod.
; Windows FDS only.

ObjectsFile=gm





goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: SSGM plug-in release; Base Defence [message #273835 is a reply to message #273794] Tue, 17 July 2007 09:44 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Ah, I didn;t notice that. I have never used a linux server and have extremely little knowledge on the matter.
I have asked Whitedraog to perhaps shed some light.



Re: SSGM plug-in release; Base Defence [message #273848 is a reply to message #273794] Tue, 17 July 2007 10:48 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
rreally nice man
Re: SSGM plug-in release; Base Defence [message #273855 is a reply to message #273794] Tue, 17 July 2007 11:21 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
LMFAO at vidoes song!!!! hahahaha
Re: SSGM plug-in release; Base Defence [message #273954 is a reply to message #273794] Tue, 17 July 2007 23:34 Go to previous messageGo to next message
silentevil is currently offline  silentevil
Messages: 94
Registered: April 2005
Location: Germany Hamburg
Karma: 0
Recruit

and now ? no linux fds user can use you butyful plugin ? Dont Get It
Re: SSGM plug-in release; Base Defence [message #273971 is a reply to message #273794] Wed, 18 July 2007 01:11 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
Don't worry, I'm sure he will re-export the file to something linux can eat. Or he will get something else to do it. It won't go to waste.

Something else I noticed in the video. Dooes the Nod_Turret_Destroyed remain after you buy a new turret over it? It could be the video, but i believe that's what I saw.
Re: SSGM plug-in release; Base Defence [message #273973 is a reply to message #273794] Wed, 18 July 2007 01:28 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
ow i never noticed that :S
Re: SSGM plug-in release; Base Defence [message #274453 is a reply to message #273794] Fri, 20 July 2007 08:24 Go to previous messageGo to next message
crazfulla is currently offline  crazfulla
Messages: 667
Registered: September 2006
Location: Aotearoa
Karma: 0
Colonel
I think there is a script you need to remove or somthing to fix that? Or just attach a 'destroy self' script to the Nod_Turret_Destroyed preset.

"GEoDLeto wrote:"

so what you are saying it is gonna take even longer before this thing is finished
So the topic title should be changed to: a sucky little "teaser" from C&C Reborn has been released

"halo2pac wrote:"

Unless they are girls, I am not going to bone them.

[Updated on: Fri, 20 July 2007 08:25]

Report message to a moderator

Re: SSGM plug-in release; Base Defence [message #274526 is a reply to message #273794] Fri, 20 July 2007 13:18 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
I will fix the win32 version so it doesn't leave the destroyed version behind. But I have not been able to contact WD about the linux version problem not being able to load an objects.gm file :-/


Re: SSGM plug-in release; Base Defence [message #274554 is a reply to message #273794] Fri, 20 July 2007 16:01 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

void MDB_SSGM_Base_Defense::Killed(GameObject *obj, GameObject *shooter) {
	if (Settings->GameMode == 1) {
		if (strstr(Commands->Get_Preset_Name(obj),"Nod_Turret_MP")) {
			GameObject *DestroyedTurret = Commands->Create_Object("Nod_Turret_Destroyed",Commands->Get_Position(obj));
			Commands->Set_Facing(DestroyedTurret,Commands->Get_Facing(obj));
		}
		if (Settings->LogBuildingKills) {
			GameObject *Preset = GetExplosionObj();
			if (!Preset) {
				Preset = shooter;
			}
			FDSMessage(StrFormat("%s destroyed thanks to %ls (%s)",Translate_Preset(obj).c_str(),Get_Wide_Player_Name(shooter),Get_Preset_Info(Preset).c_str()),"_BUILDING");
		}
	}
}


To get rid of the destroyed turret just comment out (or remove):
		/*if (strstr(Commands->Get_Preset_Name(obj),"Nod_Turret_MP")) {
			GameObject *DestroyedTurret = Commands->Create_Object("Nod_Turret_Destroyed",Commands->Get_Position(obj));
			Commands->Set_Facing(DestroyedTurret,Commands->Get_Facing(obj));
		}*/


That should do it afaik O_o


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: SSGM plug-in release; Base Defence [message #274567 is a reply to message #273794] Fri, 20 July 2007 16:36 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Yeah, it wasn't a problem generated by the plug-in.

But I would prefer to wait for WD before releasing another win32 version so the linux version will be at the same level.

But thankyou =]



Re: SSGM plug-in release; Base Defence [message #274602 is a reply to message #273794] Fri, 20 July 2007 19:44 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Fantastic, Whitedragon just told me there is actually a function that I can call to make the change to the object.
In other words, the next release will not need an objects file at all.

I still have no clue why the LFDS does not load the objects file, whether it is my plug-in or just the LFDS, I really know embarassingly little about linux. But whatever, next version will work for linux too and will not need an objects file.



Re: SSGM plug-in release; Base Defence [message #274679 is a reply to message #273794] Sat, 21 July 2007 08:49 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
OK, I have fixed the win32 version so it removes the second dead turret when you revive it. The plug-in was working fine, just as Zunnie pointed out, SSGM creates a dead turret too when one is killed.

I also used a function that WD pointed out to remove the need for the objects.gm file completely, so this is now removed.

I have sent a message to Whitedragon and asked if he might kindly created the linux version, which should mean that linux version will now work too and put put up for download soon.

The direct link for the new win32 version is:

http://www.mp-gaming.com/reborn/coderelease/SSGM_2.0.1_Base_Defence_Plug-in_win3 2.zip

However when Whitedragon (if he kindly agrees) has finished the linux build, then I will get both downloads on game-maps and post a link here.



Re: SSGM plug-in release; Base Defence [message #274684 is a reply to message #274679] Sat, 21 July 2007 09:20 Go to previous messageGo to next message
JasonKnight is currently offline  JasonKnight
Messages: 117
Registered: September 2006
Karma: 0
Recruit
Is there a map list that the defences are automatically made on, or are they only on the standard maps? or are their user made maps that this will work on as well?
Re: SSGM plug-in release; Base Defence [message #274692 is a reply to message #273794] Sat, 21 July 2007 10:18 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
It is hard coded to work on the westwood maps without base defence.

To add support for other maps you would have to edit the source code. But it is possible to add support for fan-maps too.



Re: SSGM plug-in release; Base Defence [message #274701 is a reply to message #274692] Sat, 21 July 2007 10:40 Go to previous messageGo to next message
JasonKnight is currently offline  JasonKnight
Messages: 117
Registered: September 2006
Karma: 0
Recruit
thx, i was just wondering, bascially i was wondering if you did it for any of the fan maps that came in the core patches...

thx again for the answer+.
Re: SSGM plug-in release; Base Defence [message #276062 is a reply to message #273794] Sun, 29 July 2007 14:53 Go to previous messageGo to next message
JasonKnight is currently offline  JasonKnight
Messages: 117
Registered: September 2006
Karma: 0
Recruit
Real quick, How did yo uget the X,Y,and Z cords for where to put the items, did you get them from LE when you places ne on the map?

just wondering because it would be cool to add in my own because on some maps you did not add GDI guard towers.

THX
Re: SSGM plug-in release; Base Defence [message #276071 is a reply to message #273794] Sun, 29 July 2007 15:26 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Open the level in Leveledit, then "make" a GuardTower or Turret
anywhere you want, double click on it and note the XYZ position of it.
Then use that in the ini file.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: SSGM plug-in release; Base Defence [message #276079 is a reply to message #276071] Sun, 29 July 2007 16:08 Go to previous messageGo to next message
JasonKnight is currently offline  JasonKnight
Messages: 117
Registered: September 2006
Karma: 0
Recruit
the .dat file but yea, thanks thats what I needed to know Big Ups
Re: SSGM plug-in release; Base Defence [message #277829 is a reply to message #273794] Wed, 08 August 2007 04:06 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Below is a link to the latest builds of both win32 and linux, source included.
This should fix any problems on the linux build, and also has improved code thanks to white dragon ( In Love ).


http://www.mp-gaming.com/reborn/coderelease/SSGM_2.0.2_Base_Defence_Plug-in_LFDS .zip

http://www.mp-gaming.com/reborn/coderelease/SSGM_2.0.2_Base_Defence_Plug-in_win3 2.zip


Will be put on http://www.game-maps.net soon, and also http://www.black-cell.net



[Updated on: Wed, 08 August 2007 04:07]

Report message to a moderator

Previous Topic: [scripts]WWH SSM 2.0
Next Topic: [scripts]WWH SSM 2.1
Goto Forum:
  


Current Time: Sun Dec 01 00:03:59 MST 2024

Total time taken to generate the page: 0.01258 seconds