scripts.dll requests [message #202854] |
Wed, 07 June 2006 02:48 |
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 |
=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 |
|
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 #202888 is a reply to message #202870] |
Wed, 07 June 2006 09:12 |
=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 |
|
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 |
|
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 |
=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 |
|
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 #203130 is a reply to message #202854] |
Thu, 08 June 2006 17:12 |
|
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
|
Renegade Forums - Official Drama Perpetuator.
|
|
|
Re: scripts.dll requests [message #203184 is a reply to message #202854] |
Fri, 09 June 2006 03:44 |
|
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 #203231 is a reply to message #202854] |
Fri, 09 June 2006 10:48 |
|
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."
|
|
|