Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Code] Sending WOL pages without the PAGE console command
[Code] Sending WOL pages without the PAGE console command [message #466643] Wed, 25 April 2012 09:43 Go to next message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
Something simple I figured out while trying to find a way to check if a player is on WOL with the FDS. This does the same thing that the PAGE console command does internally. Not sure about any issues. Guess this could be useful to someone..

RENEGADE_FUNCTION
void Page_WOL_User(WideStringClass Name, WideStringClass Message)
AT2(0x004D5100, 0x004D5100);

REF_DEF2(WWOnlineInstance, int, 0x0082EEBC, 0x0082EEBC);

void Page_WOL_User_Wrapper(WideStringClass Name, WideStringClass Message)
{
	int pointer = WWOnlineInstance;

	_asm
	{		
		push Message
		push Name
		mov ecx, pointer
		call Page_WOL_User
	}

//	Page_WOL_User(Name, Message);
}


Use it like:

Page_WOL_User_Wrapper("Iran", "sup bro");


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Wed, 25 April 2012 09:44]

Report message to a moderator

Re: [Code] Sending WOL pages without the PAGE console command [message #466648 is a reply to message #466643] Wed, 25 April 2012 11:02 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma: 0
General (3 Stars)

Your code doesn't do any of the right checks (like making sure that WOL is active Smile

Not sure what it does that is better than the PAGE console command.

I just wish I knew more about the inner workings of the Renegade WOL 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: [Code] Sending WOL pages without the PAGE console command [message #466650 is a reply to message #466643] Wed, 25 April 2012 11:19 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
I know.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [Code] Sending WOL pages without the PAGE console command [message #466724 is a reply to message #466643] Thu, 26 April 2012 17:49 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
How did you have the ability to stumble upon this? And can this be expanded into interacting the the WOL IRC channel that the FDS creates?

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: [Code] Sending WOL pages without the PAGE console command [message #466741 is a reply to message #466643] Fri, 27 April 2012 05:21 Go to previous message
iRANian is currently offline  iRANian
Messages: 4298
Registered: April 2011
Karma: 0
General (4 Stars)
I just checked what function the PAGE console command calls to send the actual page and what's in the ecx register, yeah it's possible to play around with that but I have no idea how it works, other than it uses a "request and callback" system like WOLAPI does and you have WOLGameModeClass functions calling equivalent WWOnline:: functions.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Fri, 27 April 2012 05:22]

Report message to a moderator

Previous Topic: [MODEL] Mario Kart Item Box
Next Topic: [SSGM 4.0 Plugin] Custom Flip Kill
Goto Forum:
  


Current Time: Thu Mar 28 03:27:56 MST 2024

Total time taken to generate the page: 0.01065 seconds