Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How do I create scripts?
How do I create scripts? [message #91141] Sun, 30 May 2004 15:10 Go to next message
deadmoap is currently offline  deadmoap
Messages: 20
Registered: May 2004
Karma: 0
Recruit
I looked in Script.dll, and it had these funtions:

Create_Script
Destroy_Script
Get_Script_Count
Get_Script_Name
Get_Script_Param_Description
Set_Request_Destroy_Func
Set_Script_Commands
_DllMain@12

I'm guessing that creating a script for renegade would be like creating a script for Messenger Plus, where I just make a DLL that has a few functions and put it in a certain folder.
How do I create scripts? [message #91149] Sun, 30 May 2004 15:38 Go to previous messageGo to next message
z310
Messages: 2459
Registered: July 2003
Karma: 0
General (2 Stars)
dunno lol
How do I create scripts? [message #91213] Sun, 30 May 2004 19:42 Go to previous messageGo to next message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
i guess it helps to take a look at the scripts for the other mods...
If you take a look at all mods (exept for some simple ones) you'll find there is a extra *.h, *.cpp, *.obj file (eg. server side scripts.dll for AOW mod has AOW.h & AOW.cpp in the script scource) there is also a AOW.obj (i think it defines the objects judging by it's extention)

but, hey... i also wish someone would write a tutorial for ppl like us, who want to write a mod, know c++ and just don't know how or where to start Smile


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
How do I create scripts? [message #91226] Sun, 30 May 2004 21:01 Go to previous messageGo to next message
deadmoap is currently offline  deadmoap
Messages: 20
Registered: May 2004
Karma: 0
Recruit
You know what I would absolutely love? If EA would at least make it so that we could write progams that hook onto game.exe. If I could at least get the addresses to some of the functions that renegade uses, I could do a lot. I bet renegade also uses some custom events.

But this also be a bad thing, too. Because someone could write a program that gets the position of the nearest enemy, and points the main character right at them, automatically. In fact it would be even easier to increase the speed of characters and vehicles... there's a lot you could do if you knew how to properly hook onto game.exe.
How do I create scripts? [message #91476] Mon, 31 May 2004 20:59 Go to previous messageGo to next message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
http://web.black-cell.net/ssaow.zip
How do I create scripts? [message #91489] Mon, 31 May 2004 22:07 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

if you want to make scripts, you need either Visual C++ 6 or Visual C++ 7 (I am currently using 7.1)

Then you just need to look at the existing scripts and build your own along those lines.

If you have questions, you can contact me in ICQ/AIM/MSN/Yahoo, my details are in the readme.txt of the scripts.

But, do remember, if you create any scripts and give them out, you need to also include source code, as per GPL (see the file copying in the scripts zip file)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
How do I create scripts? [message #91663] Tue, 01 June 2004 14:52 Go to previous messageGo to next message
deadmoap is currently offline  deadmoap
Messages: 20
Registered: May 2004
Karma: 0
Recruit
I have Visual C++ 6.0.
How do I create scripts? [message #91717] Tue, 01 June 2004 18:04 Go to previous message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
jonwil

If you have questions, you can contact me in ICQ/AIM/MSN/Yahoo, my details are in the readme.txt of the scripts.



Have you thought about writting a tutorial about animations and the move/attack commands, I have got to grips with most of the other stuff but I am still having problems with those two.

For example what calls would I need to make, to make the A10 move round the map possibly doing an airstrike against a tank?

I have been able to make an APC follow/attack a player but the same calls don't work for the A10.

As a work around I tried doing setPosition calls, but it looks jurky because of the low net update rate.

Thanks,
Gib
Previous Topic: RenegadeRevolver Website Launched
Next Topic: Renegade Alert In-Game Submarine Video
Goto Forum:
  


Current Time: Fri Nov 15 22:38:52 MST 2024

Total time taken to generate the page: 0.00823 seconds