Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » scripts.dll requests
scripts.dll requests [message #202854] Wed, 07 June 2006 02:48 Go to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
Commands->Get_BHS_Version(PlayerID)

Returns the version ID of the player specified.

---

PlayerLeftHook(PlayerID)

Function that is called when a player leaves the game.

---

Commands->Verticle_Distance(Object)

Returns the distance between the z height you are to the next object below you.

---

Commands->All_Objects_Within_Distance(StartObj, Distance)

Returns an array of all objects within a certain distance.


Let all your wishes be granted except one, so you will still have something to strieve for.

[Updated on: Wed, 07 June 2006 03:35]

Report message to a moderator

Re: scripts.dll requests [message #202864 is a reply to message #202854] Wed, 07 June 2006 04:44 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Commands->Get_Serial_Hash (PlayerID)

Gets the serial hash of the player without banning them from the server. A "serial" console command would be very nice as well.


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: scripts.dll requests [message #202868 is a reply to message #202864] Wed, 07 June 2006 05:33 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9738
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
=HT=T-Bird wrote on Wed, 07 June 2006 07:44

Commands->Get_Serial_Hash (PlayerID)

Gets the serial hash of the player without banning them from the server. A "serial" console command would be very nice as well.

are you going to start an Internet shop?


You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: scripts.dll requests [message #202870 is a reply to message #202854] Wed, 07 June 2006 05:56 Go to previous messageGo to next message
Ma1kel is currently offline  Ma1kel
Messages: 956
Registered: July 2005
Location: Kingdom of the Netherland...
Karma: 0
Colonel
You can't use a serial hash, a serial hash is kind of encryption.

Re: scripts.dll requests [message #202888 is a reply to message #202870] Wed, 07 June 2006 09:12 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Ma1kel wrote on Wed, 07 June 2006 07:56

You can't use a serial hash, a serial hash is kind of encryption.

The serial hash in most games is taken by applying a one-way hash function (such as SHA 1 or HMAC protected MD5) to the serial, so the only thing a serial hash is good for is uniquely ID'ing a particular copy of Renegade.


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: scripts.dll requests [message #203007 is a reply to message #202854] Wed, 07 June 2006 21:10 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Get_BHS_Version, already considered and rejected.
There is the nice BHS version hook you can use instead.
PlayerLeftHook I want to do once I can figure out how to handle all cases of players leaving (e.g. unplugging a network cable etc)
Vertical_Distance, the problem with that is that one would need to do all the math manually (since there is no easy way to tell from the engine code)
All_Objects_Within_Distance, I dont particularly want an array for this but there are other options I can consider to do the same thing.
Get_Serial_Hash, I dont know how to pull that from the server yet but I will consider it if I can figure out how.


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: scripts.dll requests [message #203019 is a reply to message #202854] Wed, 07 June 2006 23:46 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9738
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
So this isn't the same hash as is in your registry?

Basically you would take the serial, hash it (with a different algorytm than renegade uses to put it in the registry) and then exchange the hashed serials with other server owners. That way there's no more need to wait for Xwis to free the id's.


You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord

[Updated on: Wed, 07 June 2006 23:48]

Report message to a moderator

Re: scripts.dll requests [message #203039 is a reply to message #203019] Thu, 08 June 2006 04:49 Go to previous messageGo to next message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma: 0
Colonel
Goztow wrote on Thu, 08 June 2006 01:46

So this isn't the same hash as is in your registry?

Basically you would take the serial, hash it (with a different algorytm than renegade uses to put it in the registry) and then exchange the hashed serials with other server owners. That way there's no more need to wait for Xwis to free the id's.

Actually, if Get_Player_Serial uses the SAME algorithm as the Renegade client, we could use the serial, client IP, and nickname in a 2-out-of-3 majority-AND authentication scheme for players (banning, moderator rights, protection against nickname theft).


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
Re: scripts.dll requests [message #203040 is a reply to message #203039] Thu, 08 June 2006 04:52 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9738
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
=HT=T-Bird wrote on Thu, 08 June 2006 07:49

Goztow wrote on Thu, 08 June 2006 01:46

So this isn't the same hash as is in your registry?

Basically you would take the serial, hash it (with a different algorytm than renegade uses to put it in the registry) and then exchange the hashed serials with other server owners. That way there's no more need to wait for Xwis to free the id's.

Actually, if Get_Player_Serial uses the SAME algorithm as the Renegade client, we could use the serial, client IP, and nickname in a 2-out-of-3 majority-AND authentication scheme for players (banning, moderator rights, protection against nickname theft).

But it would also mean that I as server owner could copy-paste it in my registry?


You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: scripts.dll requests [message #203048 is a reply to message #202854] Thu, 08 June 2006 07:46 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Gamespy servers ARE already able to check the client's serial serverside,

so you could create a new hook to catch it up.

Serial banning would be very efficient against banning cheaters.

So dont fucking tell us you cant do it Smile


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: scripts.dll requests [message #203130 is a reply to message #202854] Thu, 08 June 2006 17:12 Go to previous messageGo to next message
JeepRubi is currently offline  JeepRubi
Messages: 1417
Registered: April 2005
Location: Ontario. Canada
Karma: 0
General (1 Star)

The problem with that is that anyoneone randomly hosting a game could take the other persons serial.

HORQWER wrote on Tue, 18 September 2007 20:47

this is not a real renegade forums ,some one made it up

Renforums

We Know Drama

Renegade Forums - Official Drama Perpetuator.
Re: scripts.dll requests [message #203184 is a reply to message #202854] Fri, 09 June 2006 03:44 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9738
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
Then make it work like i proposed: use another hash to protect it.

You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: scripts.dll requests [message #203194 is a reply to message #202854] Fri, 09 June 2006 05:04 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
you mean a hash of the hash? lol

http://steamsignature.com/card/1/76561197975867233.png
Re: scripts.dll requests [message #203200 is a reply to message #203194] Fri, 09 June 2006 05:50 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9738
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
danpaul88 wrote on Fri, 09 June 2006 08:04

you mean a hash of the hash? lol

I most certainly do Razz.


You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: scripts.dll requests [message #203231 is a reply to message #202854] Fri, 09 June 2006 10:48 Go to previous message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Command for setting the the Time_remaining on all clients connected

to the server (dont know if it works serverside over the net, if

not, you need to add it to the clients too)


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Previous Topic: scripts.dll 2.8 WIP update
Next Topic: extra units,
Goto Forum:
  


Current Time: Tue Nov 26 03:39:37 MST 2024

Total time taken to generate the page: 0.01036 seconds