Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Add Scripts
Add Scripts [message #300952] Tue, 04 December 2007 10:54 Go to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Hey guys how can i make scripts for Scripts.dll? i want to add some commands like !Help to get a message. What files do i need to create? Only a .cpp file? and how can i add a command to scripts.dll? im Using Visual C++ 2005 Express Edition.
Re: Add Scripts [message #300954 is a reply to message #300952] Tue, 04 December 2007 10:58 Go to previous messageGo to next message
cnc95fan is currently offline  cnc95fan
Messages: 1260
Registered: July 2007
Karma: 0
General (1 Star)
I don't think thats scripts,although i might be wrong, it think its server sided..

Cabal8616 wrote on Sun, 27 April 2008 15:50

I say a personal fanning of the genitals would be awesome.


RA3 AUTOMATICLY SUCKS
www.battlefordune.co.uk
Re: Add Scripts [message #300956 is a reply to message #300952] Tue, 04 December 2007 11:03 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
It should be a simple !Help Command
If: !Help
Get Message: !Rules, !Host, !Servername, !Version etc.

But dont know how to make a command and add it to scripts.dll (Ps. i dont need help with the command how to do it, only how to ADD it)
Re: Add Scripts [message #300964 is a reply to message #300952] Tue, 04 December 2007 11:15 Go to previous messageGo to next message
cnc95fan is currently offline  cnc95fan
Messages: 1260
Registered: July 2007
Karma: 0
General (1 Star)
Well, if you have the code.. just add it to a cpp file in scripts soruce, and compile... make sure you declare it by using void

Cabal8616 wrote on Sun, 27 April 2008 15:50

I say a personal fanning of the genitals would be awesome.


RA3 AUTOMATICLY SUCKS
www.battlefordune.co.uk
Re: Add Scripts [message #300965 is a reply to message #300952] Tue, 04 December 2007 11:18 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
You understand me Very Happy im going to try it Very Happy Thx
Re: Add Scripts [message #300976 is a reply to message #300952] Tue, 04 December 2007 11:52 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)
Add this to gmmain.cpp and compile it, then when you type "!help" in team chat it will page you the string in the quote marks.
This is based on ssgm.


class helpChatCommand : public ChatCommandClass {
	void Triggered(int ID,const TokenClass &Text,int ChatType) {
Console_Input(StrFormat("ppage %d available commands to use in this server are !rules !host !servername !version",ID).c_str());

	}
};
ChatCommandRegistrant<helpChatCommand> helpChatCommandReg("!help",CHATTYPE_TEAM,0,GAMEMODE_ALL);



Re: Add Scripts [message #301001 is a reply to message #300952] Tue, 04 December 2007 13:44 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
Hey Reborn i saw all youre ModVideos,and they helped ALOT. Can you make a Video Tutorial how u Write it and how u add it to Scripts.dll?
Re: Add Scripts [message #301016 is a reply to message #301001] Tue, 04 December 2007 14:16 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
MadRockz wrote on Tue, 04 December 2007 13:44

Can you make a Video Tutorial how u Write it and how u add it to Scripts.dll?



http://www.renhelp.net/index.php?mod=Tutorials&action=view&id=106


EDIT:

cnc95fan wrote on Tue, 04 December 2007 10:58

I don't think thats scripts,although i might be wrong, it think its server sided..


"!help" can be either server-side or bot-side. >_> This goes for any commands. Just look at Kamiux's server.

~MathK1LL

[Updated on: Tue, 04 December 2007 14:17]

Report message to a moderator

Re: Add Scripts [message #301238 is a reply to message #300952] Wed, 05 December 2007 13:10 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
but cnc95fan said that i only need .cpp file and on the tut it shows with header file Sad
Re: Add Scripts [message #301239 is a reply to message #300952] Wed, 05 December 2007 13:13 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
i created a .cpp file and copied to my script source folder, thn i loaded the scripts.sln and launched "build script" or something... then i took scripts.dll in my fds folder and nothing habens Sad
Re: Add Scripts [message #301240 is a reply to message #300952] Wed, 05 December 2007 13:15 Go to previous messageGo to next message
cnc95fan is currently offline  cnc95fan
Messages: 1260
Registered: July 2007
Karma: 0
General (1 Star)
lol,I don't think when you compile it it goes to your FDS folder, also, make a .h file aswell in scrips.vcproj

Cabal8616 wrote on Sun, 27 April 2008 15:50

I say a personal fanning of the genitals would be awesome.


RA3 AUTOMATICLY SUCKS
www.battlefordune.co.uk
Re: Add Scripts [message #301245 is a reply to message #300952] Wed, 05 December 2007 13:28 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
omfg i need a tutorial
Re: Add Scripts [message #301250 is a reply to message #301245] Wed, 05 December 2007 13:48 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Why make a new bot? there's already a lot out there, including NR, BR, and some other ones which are about to be released.
Re: Add Scripts [message #301253 is a reply to message #300952] Wed, 05 December 2007 13:58 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
i dont want to create a bot Sarcasm i want to make commands wich cant be done in lua...
Re: Add Scripts [message #301487 is a reply to message #300952] Thu, 06 December 2007 14:49 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
If i try to compile the scripts its only saying Fatal Error´s T_T (59 fucking errors)

[Updated on: Thu, 06 December 2007 14:51]

Report message to a moderator

Re: Add Scripts [message #301491 is a reply to message #300952] Thu, 06 December 2007 14:51 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
You're probably referring to when it's linking to the libraries SSGM/Scripts.dll uses, no?

There's a post somewhere on these forums that explains how to set it up, but I'm too lazy to find the post. :\


~MathK1LL
Re: Add Scripts [message #301493 is a reply to message #300952] Thu, 06 December 2007 14:54 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
The post MathK1LL is referring to is http://www.renegadeforums.com/index.php?t=msg&goto=296486&rid=3415&s rch=express#msg_296486

Try doing what it says in that post.. and then try compiling. You shouldn't get any errors if your code is correct.


-Jelly Administrator
-Exodus Administrator

[Updated on: Thu, 06 December 2007 14:55]

Report message to a moderator

Re: Add Scripts [message #301495 is a reply to message #301493] Thu, 06 December 2007 14:55 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
RFraven wrote on Thu, 06 December 2007 14:54

The post MathK1LL is referring to is http://www.renegadeforums.com/index.php?t=msg&goto=296486&rid=3415&s rch=express#msg_296486


Yea, thanks xD


~MathK1LL
Re: Add Scripts [message #301504 is a reply to message #300976] Thu, 06 December 2007 15:26 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
do i need the ssgm source in my fds folder? and edit it in c++ then?
Re: Add Scripts [message #301506 is a reply to message #300952] Thu, 06 December 2007 15:36 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
The SSGM source doesnt need to be in the FDS folder..

When you download SSGM, there is a .zip file in it called SSGM Source.zip.. extract that and open SSGM.sln. MS VC++ will open up and you will able to edit the source. Make your edits and build the source. You will then notice scripts.dll inside the directory that SSGM.sln was in. Copy this to your FDS directory overwriting the old version.


-Jelly Administrator
-Exodus Administrator
Re: Add Scripts [message #301540 is a reply to message #301506] Thu, 06 December 2007 18:32 Go to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
RFraven wrote on Thu, 06 December 2007 15:36

The SSGM source doesnt need to be in the FDS folder..

When you download SSGM, there is a .zip file in it called SSGM Source.zip.. extract that and open SSGM.sln. MS VC++ will open up and you will able to edit the source. Make your edits and build the source. You will then notice scripts.dll inside the directory that SSGM.sln was in. Copy this to your FDS directory overwriting the old version.




I highly recommend you change the extension from ".dll" to ".bak" or similar. This way you can easily revert back incase you need to.


Also, to help you develop for Scripts.dll/SSGM, you'll want to attach the debugger of Visual Studio to server.dat (the process when the server is running). This'll detect any crashes from the server and pinpoint the location of the crash to the line number the crash occured..

~MathK1LL
Previous Topic: Erorr with game-pending patch
Next Topic: Help!
Goto Forum:
  


Current Time: Fri Oct 04 16:20:58 MST 2024

Total time taken to generate the page: 0.01667 seconds