Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » WIP movie of new plugin
WIP movie of new plugin [message #399228] Sun, 23 August 2009 11:14 Go to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Most of this code has been ripped out from an old version of a DragonAde release, made by black-cell.

It's not very elegant either, it uses the filestream which I personally do not like because too much IO is the cause of most server lag. However, it does work, and it's a simple enough way to implement additional console commands (that are not really console commands at all) to the server.

Here is a movie showing the WIP of it.

http://spencerelliott.co.uk/video.html

Again, the site itself is still a work in progress, so please do not mind the errors and unfinished work.



Re: WIP movie of new plugin [message #399232 is a reply to message #399228] Sun, 23 August 2009 11:20 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
oh wow....
Re: WIP movie of new plugin [message #399234 is a reply to message #399228] Sun, 23 August 2009 11:22 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Nice concept.
Re: WIP movie of new plugin [message #399237 is a reply to message #399228] Sun, 23 August 2009 11:33 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Wow Reborn, that's pretty awesome! Will you be releasing the source? (knowing it's you, I'm sure you will Razz)

Only qualm with it is as you said, constantly polling the directory to see if that file exists could be quite slow... but hopefully that issue would be negligible.

Either way, very cool! Smile


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: WIP movie of new plugin [message #399241 is a reply to message #399228] Sun, 23 August 2009 11:37 Go to previous messageGo to next message
Prulez is currently offline  Prulez
Messages: 439
Registered: August 2005
Location: The Netherlands
Karma: 0
Commander
Very, very nice! Thumbs Up Thumbs Up

http://i32.tinypic.com/2j1rey8.png

nikki6ixx wrote on Fri, 08 May 2009 19:47

Every so often, I get this positive feeling that humanity can somehow, possibly attain pure awesomeness, and enlightenment, and that there is light at the end of the road for us all. However, I only need to go to the latest HUD thread at RenForums to remind me of how dumb I was for thinking such stupid things.
Re: WIP movie of new plugin [message #399243 is a reply to message #399228] Sun, 23 August 2009 11:41 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
Good done, all SSGM plugins on one page. Thumbs Up

Bückstabü!
Re: WIP movie of new plugin [message #399304 is a reply to message #399228] Sun, 23 August 2009 15:10 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
Very nice Thumbs Up
I like it Big Grin


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
Re: WIP movie of new plugin [message #399363 is a reply to message #399228] Sun, 23 August 2009 17:15 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
Fucking std::.

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Re: WIP movie of new plugin [message #399369 is a reply to message #399363] Sun, 23 August 2009 17:36 Go to previous messageGo to next message
dr3w2 is currently offline  dr3w2
Messages: 485
Registered: September 2006
Location: Ottawa,Canada
Karma: 0
Commander
Sir Kane wrote on Sun, 23 August 2009 19:15

Fucking std::.

lol i was waiting for that


n00bstories Server Administrator
Re: WIP movie of new plugin [message #399370 is a reply to message #399363] Sun, 23 August 2009 17:40 Go to previous messageGo to next message
YazooGang is currently offline  YazooGang
Messages: 742
Registered: August 2008
Location: US
Karma: 0
Colonel
I dont get it.. Whats so awesome?
Re: WIP movie of new plugin [message #399378 is a reply to message #399363] Sun, 23 August 2009 19:02 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Sir Kane wrote on Sun, 23 August 2009 19:15

Fucking std::.

It's always you lol

On a more serious note, why not use something a little more efficient... like named pipes, or maybe even a local socket connection?


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

[Updated on: Sun, 23 August 2009 19:03]

Report message to a moderator

Re: WIP movie of new plugin [message #399392 is a reply to message #399378] Sun, 23 August 2009 22:41 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)
Ethenal wrote on Sun, 23 August 2009 14:33

Wow Reborn, that's pretty awesome! Will you be releasing the source? (knowing it's you, I'm sure you will Razz)

Only qualm with it is as you said, constantly polling the directory to see if that file exists could be quite slow... but hopefully that issue would be negligible.

Either way, very cool! Smile


Yeah, source will be included.
Yeah, the polling is not quite so elegant, nor is the face that it's using disk files either.


YazooGang wrote on Sun, 23 August 2009 20:40

I dont get it.. Whats so awesome?


It could allow for allot of potential extra scope for regulators, amongst other things...

Ethenal wrote on Sun, 23 August 2009 22:02

Sir Kane wrote on Sun, 23 August 2009 19:15

Fucking std::.

It's always you lol

On a more serious note, why not use something a little more efficient... like named pipes, or maybe even a local socket connection?



Yes, SK is always super helpful. Never have a beer with him, his glass is always half empty.
The first release will be using the file stream and disk files.
The second release will have additional commands that people might mention they would like, but specifically it will include a bunch of commands to get_ information, making it more useful...
i.e
getmaxarmor can be used first, then another command used after like setmaxarmor (so they can set the max armor based on a value received from the server about the object).
Finally the third release will likely use sockets, probably a TCP connection rather than named pipes so it can be done remotely rather than on the server. Dropping the disk file stuff and making it asynchronous too, all round more efficient.
However, the 2nd and 3rd releases will largely depend on how receptive bot creators are to it... Smile



[Updated on: Sun, 23 August 2009 22:41]

Report message to a moderator

Re: WIP movie of new plugin [message #399398 is a reply to message #399392] Sun, 23 August 2009 23:37 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
reborn wrote on Mon, 24 August 2009 06:41

However, the 2nd and 3rd releases will largely depend on how receptive bot creators are to it... Smile




Which relies on us understanding what exactly it's meant to DO...


http://steamsignature.com/card/1/76561197975867233.png
Re: WIP movie of new plugin [message #399410 is a reply to message #399228] Mon, 24 August 2009 00:32 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 will add a whole host of new commands for the server that can be executed by dropping a text file into the server directory, meaning that server owners could execute commands such as enablephysics for example on a GameObject, based on it's objectID. Another good example is the ability to attach scripts to objects through the text file...
That one command in itself is quite nice and has allot more scope than you might at first think...
You could use the bot to authenticate moderators by attaching a script to authenticated in-game moderators. This script then might add there player ID to a Vector and then all those moderator chat commands people make could then use a boolean conditional on them first, making sure the player executing the chat command is in the authenticated Vector (much much safer than the simple name check based on a mods.txt file we saw float about a couple of years back).
There's a shit tonne that can be done with just that one additional command that's added. I will endevour to add as many commands as possible, and while it will not allow for the bot to be as useful as directly coding inside the server API itself, it will deffinately allow the bot to become allot more dynamic than it currently is.


A more detailed explanation will come with the release, explaining what commands have been added, and how to use them.

Clearly this is better suited for a regulator to automate the process, so that this can be executed remotely from IRC. Adding much more scope for the regulators and what they are capable of. However, it could also be done by hand too (FTP to the server directory perhaps?), but in reality this will be useful mainly for bots.



Re: WIP movie of new plugin [message #399439 is a reply to message #399228] Mon, 24 August 2009 06:09 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
http://msdn.microsoft.com/en-us/library/aa364417(VS.85).aspx

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907

[Updated on: Mon, 24 August 2009 06:09]

Report message to a moderator

Re: WIP movie of new plugin [message #399446 is a reply to message #399228] Mon, 24 August 2009 06:40 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)
Thank you, that looks like a much better way to do it. I will try to use it, thanks.


Re: WIP movie of new plugin [message #399524 is a reply to message #399228] Mon, 24 August 2009 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)
Quote:


The following is a list of currently supported commands, and how to use them:

command kill number // consider number like this: Commands->Find_Object(number); Where number is the objectID
command setcredits ObjectID amount // Fairly self explanitory
command givecredits ObjectID amount // Fairly self explanitory
command givepoints ObjectID amount // Fairly self explanitory
command destroy number // consider number like this: Commands->Find_Object(number); Where number is the objectID
command forceoccupantexit ObjectID Seatnumber
command forceoccupantsexit number // Where number is the objectID number (obviously needs to be a vehicle)
command setpos ObjectID Xnumber Ynumber Znumber
command createobj ObjectID presetname amount//First ObjectID is the object that defines where you want it spawned, presetname is the name of the preset you want to spawn, and amount is how many of these you want to spawn.
command teamchange ObjectID newteamnumber
command sethealth ObjectID healthnumber
command setarmor ObjectID healthnumber
command distrans objectID // disables the transitions of the vehicle, ObjectID clearly needs to be a vehicle
command entrans objectID // enables the transitions of the vehicle, ObjectID clearly needs to be a vehicle
command setanim ObjectID animationname // doesn't loop anim
command setanim2 ObjectID animationname // loops anim
command movepos objectID Xnumber Ynumber Znumber
command attach ObjectID bonename modelname
command givepowerup ObjectID powerupname
command givepowerup2 playername powerupname
command attachscript ObjectID scriptname parameters // Commands->Attach_Script(Commands->Find_Object(ID),Text[3].c_str(),Text[4].c_str());
command sendmessage ObjectID message //Not a pm, youre sendning a custom... //Commands->Send_Custom_Event(0,Commands->Find_Object(ID),Message,0,0);
command setshield ObjectID shieldtypename //blamo etc etc
command cinematic ObjectID cinematicname // ObjectID is what you want the cinematic attached to.
command cinematic2 Xnumber Ynumber Znumber cinematicname //Creates an invis object at that location and attaches cinematic to it.
command freezeplayer ObjectID // player has no control
command unfreezeplayer ObjectID // Player is given control
command setmodel ObjectID modelname
command resetpoints ObjectID // sets a players points to zero
command resetcredits ObjectID
command disablephysics ObjectID //disable collisions
command enablephysics ObjectID // enable collisions
command makespy ObjectID // sets the object to be invisible to base defenses // Commands->Set_Is_Visible(Commands->Find_Object(ID),false);
command dropweapons ObjectID // clears a players weapons
command giveteampoints ObjectID pointsnumber // gives the player some points, but also gives all team mates the same amount of points too
command changecharacter ObjectID characterpreset
command teamnumber damageamount warheadname ObjectID // ObjectID is the gameobject of the damager
command repairbuildings teamnumber repairamount
command setmaxhealth ObjectID maxhealthnumber
command setmaxarmor ObjectID maxarmornumber
command setmaxhealthpercent ObjectID percentamount // sets the health of the object based on it's maxhealth
command setmaxarmorpercent ObjectID percentamount // sets the health of the object based on it's maxarmor
command grantrefill ObjectID
command grantpowerup powname
command flymode ObjectID // toggles fly mode for the player
command enablestealth ObjectID booleanflag // Commands->Enable_Stealth(Commands->Find_Object(ID),boolflag); //booleanflag should either be true or false. true for enabling stealth.
command damageobjectshalf // damages all buildings by 250.0f
command teleport ObjectID ObjectID //first ObjectID is the player to teleport, second ObjectID is the player to teleport too
command pt PlayerID //displayes the PT for the players team. Takes a player ID only, not an ObjectID




Re: WIP movie of new plugin [message #399536 is a reply to message #399439] Mon, 24 August 2009 14:28 Go to previous message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Sir Kane wrote on Mon, 24 August 2009 08:09

http://msdn.microsoft.com/en-us/library/aa364417(VS.85).aspx

Yeah, I was going to suggest that but I wasn't around. Good call. Razz


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Previous Topic: [Request]Script
Next Topic: ag_pucreation.w3d
Goto Forum:
  


Current Time: Mon Oct 28 15:31:35 MST 2024

Total time taken to generate the page: 0.01297 seconds