Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts.dll help
Scripts.dll help [message #96544] Tue, 22 June 2004 02:05 Go to previous messageGo to previous message
gibberish
Messages: 366
Registered: May 2003
Karma:
Commander
thinlan

i have not the slightest idea how to do it


- Spawn a thread inside scripts.dll
- Create a server server socket and listen for incoming connections.
- Open an outgoing socket from your regulator.
- The regulator parses the log file generated by the FDS.
- If the regulator sees a command it forwards it over the socket to the FDS
- Then the thread in scripts.dll queues the command.
- Have a timer set to read the queue from the main thread (every second) and then the main thread executes the command (Kill player, move player, give money .........).

Additionally you can feed information about kills and such back the other way so that the regulator can do stuff with it.

Alternatively just write your regulator in C and compile it into scripts.dll that way you don't have to spawn any threads or do any network programming.
But the disadvantage is that if you need to update the regulator you have to stop the FDS.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scripts.dll
Next Topic: Taximes PT Icons
Goto Forum:
  


Current Time: Mon Oct 14 20:44:46 MST 2024

Total time taken to generate the page: 0.01003 seconds