Jump to content

Elithe

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1354 profile views

Elithe's Achievements

Poring

Poring (1/15)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I feel really stupid, when I attempted to update I completely forgot that previously edited files do not get overwritten I would have to make the changes manually. I got the server compiled and looked over all changes since last revision that I used. Sorry for the thread, thank you for pointing that out I don't know why I didn't think to compare the two files.
  2. Can't seem to get my map server to recompile anymore after updating to latest rAthena, I have no idea how do fix it as the code looks fine to me? This is the error I get when recompiling script.c: In function 'parse_variable': script.c:1068: error: 'C_ADD_PP' undeclared (first use in this function) script.c:1068: error: (Each undeclared identifier is reported only once script.c:1068: error: for each function it appears in.) script.c:1069: error: 'C_SUB_PP' undeclared (first use in this function) make[1]: *** [obj/script.o] Error 1 make[1]: Leaving directory `/root/Desktop/rAthena/src/map' make: *** [map] Error 2 Here are the lines in question by my recompile log. if( type == C_NOP && !( ( p[0] == '=' && p[1] != '=' && (type = C_EQ) ) // = || ( p[0] == '+' && p[1] == '=' && (type = C_ADD) ) // += || ( p[0] == '-' && p[1] == '=' && (type = C_SUB) ) // -= || ( p[0] == '^' && p[1] == '=' && (type = C_XOR) ) // ^= || ( p[0] == '|' && p[1] == '=' && (type = C_OR ) ) // |= || ( p[0] == '&' && p[1] == '=' && (type = C_AND) ) // &= || ( p[0] == '*' && p[1] == '=' && (type = C_MUL) ) // *= || ( p[0] == '/' && p[1] == '=' && (type = C_DIV) ) // /= || ( p[0] == '%' && p[1] == '=' && (type = C_MOD) ) // %= || ( p[0] == '~' && p[1] == '=' && (type = C_NOT) ) // ~= || ( p[0] == '+' && p[1] == '+' && (type = C_ADD_PP) ) // ++ || ( p[0] == '-' && p[1] == '-' && (type = C_SUB_PP) ) // -- || ( p[0] == '<' && p[1] == '<' && p[2] == '=' && (type = C_L_SHIFT) ) // <<= || ( p[0] == '>' && p[1] == '>' && p[2] == '=' && (type = C_R_SHIFT) ) // >>= ) ) The code for Script.C is too long to post on the forum I was going to upload it but I don't have proper permissions to do so, it can be pulled from the github from src/map/script.c I don't know code very well but to me it looks fine. Am I in the proper support area? Help very much appreciated, Thank you!
  3. The code that attempts to gather the data from char_list query does not seem to do anything, the debug message is kinda helpful it does in fact tell me that the counter refuses to go down sometimes when a player logs out. judging by the console debug I'm assuming it is indeed the script or an error in mapreg query. I kinda wish I could draw the information from the char_list now.
  4. I'm starting to think its not a problem with the script and more of a problem with the widget provided by Cora CP https://github.com/takari1994/CORA The issue the false player count, 2 players could be logged in but it will still suggest there are 4~5 online, the issue I'm having is it is not properly updating to the correct value and I can not figure out why this is happening, the script looks fine to me as well. mapreg-SQL Here is the html for the widget that displays the server status with the players counted <div id="wid-<?php echo $wuid; ?>" class="panel panel-primary widget wid-ss"> <div class="panel-heading"> <span class="panel-title"><?php echo $title; ?></span> </div> <div class="panel-body"> <table> <tr> <td class="desc text-right">Map Server</td> <td> <?php if(1 == $map) echo '<span class="label label-success">ON</span>'; else echo '<span class="label label-danger">OFF</span>'; ?> </td> <?php if(1 == $player_online): ?> <td class="desc text-right">Players Online</td> <td> <?php $json = file_get_contents(base_url().'community/player_statistics'); $ps = json_decode($json); echo '<span class="label label-warning">'.$ps->player_count.'</span>'; ?> </td> <?php elseif(1 == $player_peak): ?> <td class="desc text-right">Online Peak</td> <td> <?php $json = file_get_contents(base_url().'community/player_statistics'); $ps = json_decode($json); echo '<span class="label label-warning">'.$ps->player_peak.'</span>'; ?> </td> <?php endif; ?> </tr> <tr> <td class="desc text-right">Char Server</td> <td> <?php if(1 == $char) echo '<span class="label label-success">ON</span>'; else echo '<span class="label label-danger">OFF</span>'; ?> </td> <?php if(1 == $player_online AND 1 == $player_peak): ?> <td class="desc text-right">Players Peak</td> <td> <?php $json = file_get_contents(base_url().'community/player_statistics'); $ps = json_decode($json); echo '<span class="label label-warning">'.$ps->player_peak.'</span>'; ?> </td> <?php endif; ?> </tr> <tr> <td class="desc text-right">Login Server</td> <td> <?php if(1 == $login) echo '<span class="label label-success">ON</span>'; else echo '<span class="label label-danger">OFF</span>'; ?> </td> </tr> </table> </div> </div> (this tells me it just reads and prints off the SQL value.) so if this isn't an issue with the script not refreshing the value to reflect how many are online then is it possibly just a SQL permissions issue or a messup in the HTML code? Sorry that this is now evolving past the issue of being purely the script but i'm lost on what it could even be at this point.
  5. Hello I'm having difficulties finding the problem with the script I'm using, I use Cora CP with the user counter script that must be plugged into the game to function however I have ran into an issue where the player count will never properly dispaly or go back down to zero. Players Peaked seems to work properly though. - script user_counter -1,{ OnPCLoginEvent: query_sql("SELECT value FROM mapreg WHERE varname='userOnline'",.@lastOnline); if(getarraysize(.@lastOnline) == 0) { query_sql("INSERT INTO mapreg(varname,value) VALUE('userOnline',1)"); set .@userOnline,1; } else { query_sql("UPDATE mapreg SET value=value+1 WHERE varname='userOnline'"); set .@userOnline,.@lastOnline[0]+1; } query_sql("SELECT value FROM mapreg WHERE varname='userPeak'",.@userPeak); if((.@userOnline > .@userPeak[0]) || (getarraysize(.@userPeak) == 0)) { if(getarraysize(.@userPeak) == 0) .@newPeak$ = "INSERT INTO mapreg(varname,value) VALUE('userPeak',"+.@userOnline+")"; else .@newPeak$ = "UPDATE mapreg SET value="+.@userOnline+" WHERE varname='userPeak'"; query_sql(.@newPeak$); .@peak = .@userOnline; } else { .@peak = .@userPeak[0]; } end; OnPCLogoutEvent: query_sql("SELECT value FROM mapreg WHERE varname='userOnline'",.@lastOnlineB); if(.@lastOnlineB[0] > 1) query_sql("UPDATE mapreg SET value=value-1 WHERE varname='userOnline'"); else query_sql("DELETE FROM mapreg WHERE varname='userOnline'"); end; } I thought it was just having issues by a single count but later I noticed sometimes the count would not go back down, I have 2 players in the server while the count says 4 it seems to go down then I log out but sometimes it goes up by 1 for good. Sorry I'm having a hard time explaining my issue here, so my question is. Does anything in this code look like it could be causing the potential problem I looked at it and it looks fine to me I thought of a temp solution is to have it reset on server startup. but something causes the counter to decide to not go down a digit.
  6. I was not sure where to post this, but I've been looking for a way to define admin ID's as multiple name colors, for an RP based server. Essentially I want Yellow, Blue, Green, Red color options in names. I know in the clientinfo.xml you can define an ID for Yellow. I don't think it works for other colors so my question is more of how to add in multiple colors. (Was not sure if this belonged in Graphic Request or if this was less client based.)
×
×
  • Create New...