Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripting
scripting [message #250894] Wed, 21 March 2007 05:15 Go to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
I'm new to scripting but have done a quick study of the script form and came up with a small script I want to make for my map as well as wish to make further scripts in the future.

I can make the proper form for the script by reviewing the source code but unfortunetely I'm basically clueless from there. I downloaded visual c++ express edition for easier editing and to be able to compile it once I'm done with it but I'm not even sure what exactly to compile it with or into. :S I was wondering if anyone could please give me a basic overview of what to do once I've made my script and how I would be able to share it with everyone and/or have others be able to use it when they play my map.

Also, does anyone know what to use to view the .so and .sh files?


Level edit is my play ground
Re: scripting [message #250910 is a reply to message #250894] Wed, 21 March 2007 06:58 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

The .so and .sh files are only relavent if you care about the linux FDS. The .so files are the compiled scripts.dll for linux and the .sh files are used to compile scripts-RH8.so or scripts-RH73.so as appropriate.

As for compiling, first you need Visual C++ 2005 Express Edition (which you seem to have). Second you need the Microsoft Platform SDK and the Microsoft DirectX SDK (google for them). Then, open scripts.sln and select "build" then "build solution". If it gives any errors, post them here. Otherwise scripts.dll has compiled fine and you can then make whatever changes to it you like. When you are distributing it for other people to use, you need to distribute the scripts.dll file that is created in the folder with all the source code.


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
Re: scripting [message #250912 is a reply to message #250894] Wed, 21 March 2007 07:12 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
How could I add my scripts to the most uptodate script set so they could use mine without losing the other new scripts?

Level edit is my play ground
Re: scripting [message #251199 is a reply to message #250894] Fri, 23 March 2007 01:00 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
so far i got these errors:

.\engine.cpp(18) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
dllmain.cpp
.\dllmain.cpp(19) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
dan.cpp

I downloaded the PSDK-x86.exe for the platform sdk; which was 1 of 3 possible downloads (of which the other 2 choices wouldn't allow me to complete the download saying it's not a valid win32 app.). Is it possible that this might be why it's messing up and if not why?


Level edit is my play ground

[Updated on: Fri, 23 March 2007 01:08]

Report message to a moderator

Re: scripting [message #251220 is a reply to message #250894] Fri, 23 March 2007 05:06 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

You downloaded the right SDK. Assuming you ran it and installed it, it should be fine. Why its not working I don't know.


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
Re: scripting [message #251241 is a reply to message #251220] Fri, 23 March 2007 06:36 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Just search for those files on google and they will give you directions of where to put them in your folder.

Re: scripting [message #251243 is a reply to message #251241] Fri, 23 March 2007 06:42 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Quote:

1. Create a directory "PlatformSDK" under "%ProgramFiles%\Microsoft Visual Studio 8\VC"
2. Copy the "bin", "include" and "lib" directory from the PSDK-installation into this directory.

Then you do not need to change any config file.

Newest PSDK-ISO is available at:

http://www.microsoft.com/downloads/details.aspx?FamilyId=D8EECD75-1FC4-49E5-BC66 -9DA2B03D9B92


Quote:

.\engine.cpp(18) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
dllmain.cpp

As for this problem I pasted the WINRES.H file into the scripts directory and changed the presets (I think that was what they were called (I do my script on a different computer or else I would check right now) and every instance of WINSOCK2.H I found I just renamed WINRES.H).
  • Attachment: WINRES.H
    (Size: 1.12KB, Downloaded 110 times)


Previous Topic: CnC Reborn : Blog!
Next Topic: scripts terms/libraries
Goto Forum:
  


Current Time: Thu Nov 14 04:45:00 MST 2024

Total time taken to generate the page: 0.00728 seconds