Jump to content

BTNX

Members
  • Posts

    55
  • Joined

  • Last visited

Posts posted by BTNX

  1. 1 hour ago, rmon said:

    Currently hosting mine at google cloud 

    with 1vcpu and 1.7gb ram 

    is it sufficient enough to handle web and server host in one instance ? 

    With the exeption of patcher... it would be ok at best... Your database will struggle with just 1 cpu.  Running both in a single server is never the best option... only do that if you have no other choice.

     

    Cloudflare can mask your IP also absorb the load during ddos.  They also work as a CDN which should make it easy on badwidth.  Patcher cannot be pulled from cache though so CDN wont help there but since you already have a webserver that doesnt allow ports to be opened... you can use it for patch server... you can even store your images css js etc in that web server.

     

    Another option is to keep your current setup(webserver and vps) but you have to create a REST API in your VPS that can be requested by your flux.  If your server is also listed in RMS... RMS already checks your server status and list it on ther site.  You can curl that status via php or do an ajax request using js and parse it accordingly.  This last bit is obviously more complicated but it is there as an option.

  2. If you are using a custom theme... Your theme maker may have a separate config file that you need to edit... one of the pictures you provided shows the time instead... maybe the wrong variable was used or the javascript is tagetting the wrong element

  3. Thanks to the power of expensive IDEs,  I was able to find my answer.

    [ROOT]/lib/Flux/Template.php

    Setting OutputCleanHTML to false in application.php solved my problem though

  4. 15 hours ago, iAmGnome said:

    Do we have a guide for it?

    No guide as this is not common and not even ideal.  You literally have to install apache and php or nodejs and write your own code

  5. You can run a minimal web server on your game server to serve an API in which will check internally if the servers are running then serve the result via http:80.  You can then do a get request and parse the result accordingly.  Obviously not ideal but it's a work around.

  6. Hi all,

     

    What is the proper way of checking the value of certain variables/properties like user ID, group level ETC.  I know each modules have access to them but I'm a bit lost to how to access them.

    Dumping all available vars and object methods is an option to see what's available but even that get's confusing.  The documentations within each PHP files does help if you're trying to figure out what the code block is for but it doesnt really help when you're looking for a method/function or what ever.

     

    Anyway, if you can just tell me how to access those two properties, I'm sure I can figure out the rest.  (current user's account ID and group level)

  7. Thanks,

     

    I pretty much knew that much from experience.  I was wondering if there's a more definitive documentation.

    I want to know things like: how to disable header and footer  if I want to create APIs and how would I access zend session data like username, access level, user id etc from there.

  8. Hi all,

     

    I'm a scripting noob and I have noobish question.

     

    I've noticed that most of the loops that I see here uses a temporary NPC int variable.  Is there a reason why it seems like it is preferred? 

     

    I'm currently writing a script that will triggers a loop via OnNPCKillEvent: that goes on to more blocks of script, functions and sql queries etc.

    OnNPCKillEvent:
    message strcharinfo(0),"Start script";
    if(!getcharid(2)){ dispbottom "not in guild"; end;}//End when not in guild
    for (set .@c, 0; .@c < getarraysize(.mvp_mobid); set .@c, .@c + 1){
    	dispbottom "Xref mob ID";
    	if (killedrid == .mvp_mobid[.@c]){ goto Kill_mvp;
    	}else { dispbottom "killed monster not on MvP list"; end; }
    } 
    More scripts blah blah

    Here's the array:

    setarray .mvp_mobid[0],       1511,         1647,        1785,        1785,        1785,        1785;
    setarray .mvp_town$[0],   "morroc","lighthalzen",    "rachel",    "rachel",     "veins",     "veins";
    setarray .mvp_map$[0], "moc_pryd06",  "lhz_dun03", "ra_fild03", "ra_fild04", "ve_fild01", "ve_fild02";
    setarray .mvp_points[0],         1,            2,           1,           1,           1,           1; 

     I would like to use:

    .@c
    

    as the index for:

    .mvp_mobid[.@c]
    

    Buuuuuut, I don't want the value of 

    .@c
    

    to change because another player triggers the loop and get my data all mixed up.

    I could, in theory transerver the value to a more personal character variable:

    set @index, .@c;

    My question is, why do I not see people use temporary int character variable instead of temporary int NPC variable?

  9. Hey guy, I need help/tutorial on how to move my clienntinfo and data.ini in the web...

     

    I saw the tutorial before but I cant find it anymore... quite frankly, idk what keywords to use and I don't remember if it was in rA or eA

×
×
  • Create New...