Raised This Month: $ Target: $400
 0% 

It is possible to load mapcycle array?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-07-2017 , 08:58   It is possible to load mapcycle array?
Reply With Quote #1

It is possible to load mapcycle.txt with new natives from 1.8.3?
I mean, find array in some class, that is loaded from this file??
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-07-2017 , 09:35   Re: It is possible to load mapcycle array?
Reply With Quote #2

fopen("mapcycle.txt") ?!
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-07-2017 , 17:48   Re: It is possible to load mapcycle array?
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
fopen("mapcycle.txt") ?!
No, i mean using gamedata (And without manual open).
I guess that orpheu or something that work with memory can done this.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-07-2017 , 18:44   Re: It is possible to load mapcycle array?
Reply With Quote #4

What purpose would this serve?
__________________
fysiks is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-07-2017 , 19:55   Re: It is possible to load mapcycle array?
Reply With Quote #5

I think he wants to retrieve the mapcycle directly from the game, because it's managed by CS in some way IIRC.
Even if it's possible to retrieve the pointer to the mapcycle structure from g_pGameRules (if there is one, will take a look later maybe), I don't think you can do much without Okapi or Orpheu memory natives.

Last edited by klippy; 04-07-2017 at 19:56.
klippy is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-07-2017 , 21:08   Re: It is possible to load mapcycle array?
Reply With Quote #6

Quote:
Originally Posted by KliPPy View Post
I think he wants to retrieve the mapcycle directly from the game, because it's managed by CS in some way IIRC.
Even if it's possible to retrieve the pointer to the mapcycle structure from g_pGameRules (if there is one, will take a look later maybe), I don't think you can do much without Okapi or Orpheu memory natives.
Yes, like we use get_pdata_* or something else.
I guess that can open ports to retrieve a lot of variables from server. MapCycle.txt, banned ids, and others.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 04-08-2017 at 00:44.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode