Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » Brenbot Plugin Error
Re: Brenbot Plugin Error [message #419155 is a reply to message #419148] Wed, 03 February 2010 15:56 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Gen_Blacky wrote on Wed, 03 February 2010 18:42

yea i have a plugin to get the players serial from a ssgm plugin serial.dll. But the plugin tries to get this line #Serial hash response from player 1 -> 00000000000000000000aaaaaaaaaaaaaaaaaaaa. I don't understand what the symbols are at the end of the line are "s.+\s\-.\s.+\./" Could you explain what they mean or give me a Perl reference so i can find out what each character does.

		if ($line =~ m/^Serial\shash\sresponse\sfrom\splayer\s.+\s\-.\s.+\./) {
		$line =~ /^Serial\shash\sresponse\sfrom\splayer\s(.+)\s\-.\s(.+)\./;
		$spass = $1;
		$shash = $2;
	}
	else {
		$line =~ /^Serial\shash\sresponse\sfrom\s(.+)\s\-.\s(.+)\./;
		$spass = $1;
		$shash = $2;
	}


<hook event="rl_playerserial" regex="^Serial\shash\sresponse\sfrom\s" />




Edit: I cant use adas serial plugin because it will crash my fds because of the modifications that I want to keep.






Just a suggestion.... modify your modifications to output the serial response in the same format as Adad's plugin does, that way the BRenBot plugin for his serials.dll will work for your modifications too.



If that's not possible for whatever reason then I suggest you learn how Regular Expressions (regexes) work. A good starting point is http://www.regular-expressions.info/tutorialcnt.html


http://steamsignature.com/card/1/76561197975867233.png
 
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 3.4.4 Problem
Next Topic: windows 7
Goto Forum:
  


Current Time: Sat Jul 20 23:00:56 MST 2024

Total time taken to generate the page: 0.00797 seconds