Jump to content

OverLord

Members
  • Content Count

    168
  • Joined

  • Last visited

Posts posted by OverLord


  1. Maybe change the code to something like this. Apparently the above type of error occurs intermittently in this guy's code and this change has corrected it for them.

     

    http://stackoverflow.com/questions/17427503/php-datetime-construct-failed-to-parse-time-string-xxxxxxxx-at-position-x

     

    It will definitely be some issue with the formatting of time and switching it from either country code to UTC and back or something like that or date display formatting being incorrect (mm-dd instead of dd-mm).

     

    Wyrmfire

     

    Left a small mistake, but at least the page opens now. Thx!!!

    view.php


  2. Maybe change the code to something like this. Apparently the above type of error occurs intermittently in this guy's code and this change has corrected it for them.

     

    http://stackoverflow.com/questions/17427503/php-datetime-construct-failed-to-parse-time-string-xxxxxxxx-at-position-x

     

    It will definitely be some issue with the formatting of time and switching it from either country code to UTC and back or something like that or date display formatting being incorrect (mm-dd instead of dd-mm).

     

    Wyrmfire

    view.php<?phpif (!defined('FLUX_ROOT')) exit;$start_date = new DateTime( "@{$dbResult->db_timestamp}" );$this->loginRequired();$title = Flux::message('AccountViewTitle'); 

    I add your recommended code... but not work...

    I try too 

     

    $start_date = new DateTime();

    $start_date->setTimestamp($dbResult->db_timestamp);

     

     

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: Exception

    Message: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character

    File: /home/playragnarok/public_html/modules/account/view.php:4

    File Line Function/Method /home/playragnarok/public_html/modules/account/view.php 4 DateTime::__construct() /home/playragnarok/public_html/lib/Flux/Template.php 337 include() /home/playragnarok/public_html/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/playragnarok/public_html/index.php 176 Flux_Dispatcher::dispatch() Exception Trace As String

    #0 /home/playragnarok/public_html/modules/account/view.php(4): DateTime->__construct('@')

    #1 /home/playragnarok/public_html/lib/Flux/Template.php(337): include('/home/playragna...')

    #2 /home/playragnarok/public_html/lib/Flux/Dispatcher.php(168): Flux_Template->render()

    #3 /home/playragnarok/public_html/index.php(176): Flux_Dispatcher->dispatch(Array)

    #4 {main}


  3.  

    if i try login a user... get this error...

     

    A Database Error Occurred

    Error Number: 1054

    Unknown column 'level' in 'field list'

    SELECT `login`.`account_id`, `userid`, `sex`, `email`, `level` AS group_id, `state`, `unban_time`, `profile_id`, `fname`, `lname`, `birthday`, `donate_points`, `vote_points` FROM (`login`) JOIN `tcp_profile` ON `tcp_profile`.`account_id` = `login`.`account_id`

    Filename: /home/playragnarok/application/models/maccount.php

    Line Number: 42

     

     

    login with coraadmin account go to settings and change the Emulator there!

     

    You're probally running hercules or Rathena and it configure to eathena.

     

    thx!!!


  4. Maybe your date/time format on the server is incorrect. Compare the time format (mm-dd-yyyy for example) to the settings in your php.ini and the format FluxCP is attempting to use.

     

    That is where I'd start anyway.

     

     

    Wyrmfire

     

    My php.ini dont have format...

     

    ; Specify how datetime and datetim4 columns are returned

    ; On => Returns data converted to SQL server settings
    ; Off => Returns values as YYYY-MM-DD hh:mm:ss
    mssql.datetimecmtnvert = Off
     
     
    i try On and Off... dont work
     
    but my old FluxCP Work no problem, i update and get this error ... :(

  5. Is there tables in your SQL base named `item_db2_re` and  `mob_db2_re`? If not, you should at least create them, and it should fix the error. They need to have the same structure as `item_db_re` and `mob_db_re` respectively (aka just copy those 2 tables structure into new tables).

     

    Ok... after create, my fluxcp monster db no crash, but no monsters....

    and "My Account" got new error:

     

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: Exception

    Message: DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character

    File: /home/playragnarok/public_html/modules/account/view.php:69

    File Line Function/Method /home/playragnarok/public_html/modules/account/view.php 69 DateTime::__construct() /home/playragnarok/public_html/lib/Flux/Template.php 337 include() /home/playragnarok/public_html/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/playragnarok/public_html/index.php 176 Flux_Dispatcher::dispatch() Exception Trace As String

    #0 /home/playragnarok/public_html/modules/account/view.php(69): DateTime->__construct('@')

    #1 /home/playragnarok/public_html/lib/Flux/Template.php(337): include('/home/playragna...')

    #2 /home/playragnarok/public_html/lib/Flux/Dispatcher.php(168): Flux_Template->render()

    #3 /home/playragnarok/public_html/index.php(176): Flux_Dispatcher->dispatch(Array)

    #4 {main}

     

     

    If u like see www.playrok.com


  6. All times i try acces "My Account" menu, i got this error...

     

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: Flux_Error

    Message: Failed to import/replace rows from table 'playragn_chaos.item_db2_re'

    File: /home/playragnarok/public_html/lib/Flux/TemporaryTable.php:230

    File Line Function/Method /home/playragnarok/public_html/lib/Flux/TemporaryTable.php 81 Flux_TemporaryTable::raise() /home/playragnarok/public_html/modules/account/view.php 16 Flux_TemporaryTable::__construct() /home/playragnarok/public_html/lib/Flux/Template.php 337 include() /home/playragnarok/public_html/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/playragnarok/public_html/index.php 176 Flux_Dispatcher::dispatch() Exception Trace As String

    #0 /home/playragnarok/public_html/lib/Flux/TemporaryTable.php(81): Flux_TemporaryTable::raise('Failed to impor...')
    #1 /home/playragnarok/public_html/modules/account/view.php(16): Flux_TemporaryTable->__construct(Object(Flux_Connection), 'playragn_chaos....', Array)
    #2 /home/playragnarok/public_html/lib/Flux/Template.php(337): include('/home/playragna...')
    #3 /home/playragnarok/public_html/lib/Flux/Dispatcher.php(168): Flux_Template->render()
    #4 /home/playragnarok/public_html/index.php(176): Flux_Dispatcher->dispatch(Array)
    #5 {main}

     

     

    And this erro how i acess Monster Data Base

     

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: Flux_Error

    Message: Failed to import/replace rows from table 'playragn_chaos.mob_db2_re'

    File: /home/playragnarok/public_html/modules/monster/index.php:197

    File Line Function/Method /home/playragnarok/public_html/lib/Flux/Template.php 337 include() /home/playragnarok/public_html/lib/Flux/Dispatcher.php 168 Flux_Template::render() /home/playragnarok/public_html/index.php 176 Flux_Dispatcher::dispatch() Exception Trace As String

    #0 /home/playragnarok/public_html/lib/Flux/Template.php(337): include()
    #1 /home/playragnarok/public_html/lib/Flux/Dispatcher.php(168): Flux_Template->render()
    #2 /home/playragnarok/public_html/index.php(176): Flux_Dispatcher->dispatch(Array)
    #3 {main}


  7. if i try login a user... get this error...

     

    A Database Error Occurred

    Error Number: 1054

    Unknown column 'level' in 'field list'

    SELECT `login`.`account_id`, `userid`, `sex`, `email`, `level` AS group_id, `state`, `unban_time`, `profile_id`, `fname`, `lname`, `birthday`, `donate_points`, `vote_points` FROM (`login`) JOIN `tcp_profile` ON `tcp_profile`.`account_id` = `login`.`account_id`

    Filename: /home/playragnarok/application/models/maccount.php

    Line Number: 42


  8. change all:

     

    SC_EXPBOOST

    SC_JEXPBOOST

    SC_ITEMBOOST

     

    into:

    SC_CASH_PLUSEXP

    SC_CASH_RECEIVEITEM

    SC_CASH_PLUSONLYJOBEXP

     
    If I do that, the VIP players could not use Battle Manuals or other items that give buffs with these same constants.
    Have any other way to make this change EXP, JOB and DROP?

  9. In some post here in the forum, I read that it was recommended to use the new constants to update the NPC "VIP System," used the following.
     
    sc_start SC_CASH_PLUSEXP,(( prmm - gettimetick(2) ) * 1000 ),200;
    sc_start SC_CASH_PLUSONLYJOBEXP,(( prmm - gettimetick(2) ) * 1000 ),200;
    sc_start SC_CASH_RECEIVEITEM,(( prmm - gettimetick(2) ) * 1000 ),200;
     
     
    However I make available  battle manuals on my server, and if I use the above commands, the VIP players do not use the "BM" because they use the same bonus, and they do not have "stack"...
     
    How can I produce the effect of the constants above for VIP Players, without disturbing the use of the manuals?

  10. Following the mistakes that happened in the latest version of Hercules! Remembering that they did not occur in the last version I used, are compatibility issues with the latest version because of mounting and something else I did not understand.
     
    [Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_battle.txt' line 30 column 16    parse_simpleexpr: unmatched ')'    27:         mes "Looks like you've taken care of the target. Hmm.";    28:         next;    29:         mes "[Guide Gion]";*   30:         if (ismounting()){        ~~~~~~~~~~~~~~~~~~~~~~^    31:                 mes "Please get down from the frog";    32:                 cutin "",255;    33:                 close;[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_knowledge.txt' line 20 column 17    parse_simpleexpr: unmatched ')'    17: {    18: if (BaseJob!=Job_Ninja){    19:         for (.i=5131; .i<5147; .i++ ){*   20:                 if (checkquest(.i) != -1){erasequest .i;}        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^    21:         }    22:         mes "[Cougar]";    23:         mes "Sorry, Your family is not same as ours, is there somethingwrong?";[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_main.txt' line 60 column 17    parse_simpleexpr: unmatched ')'    57:         close;    58: }else if (BaseJob!=Job_Ninja){    59:         for (.i=5131; .i<5147; .i++ ){*   60:                 if (checkquest(.i) != -1){erasequest .i;}        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^    61:         }    62:         job_kagero = 0;    63:         warp "amatsu",147,136;[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_main.txt' line 109column 17    parse_simpleexpr: unmatched ')'   106: function KO_IB; function KO_QS;   107: if (BaseJob != Job_Ninja && job_kagero>0){   108:         for (.i=5131; .i<5147; .i++ ){*  109:                 if (checkquest(.i) != -1){erasequest .i;}        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^   110:         }   111:         job_kagero = 0;   112:         mes "[Cougar]";[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_survival.txt' line214 column 16    parse_simpleexpr: unmatched ')'   211: OnTouch:   212:         mes "There are tiny letters on the sign.";   213:         next;*  214:         if (checkquest(5137)==1 && checkquest(5140)==-1){        ~~~~~~~~~~~~~~~~~~~~~~^   215:                 while (select("Read the description.:Start the test.")==1){   216:                         mes "The Test of Survival starts from here and you use ^FD0260100 Life Points (LP)^000000 and roll dice to advance forward through the test.";   217:                         next;[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_survival.txt' line343 column 16    parse_simpleexpr: unmatched ')'   340: callfunc("KO_DL",5);   341:   342: OnTouch:*  343:         if (checkquest(5141,PLAYTIME) == 0){        ~~~~~~~~~~~~~~~~~~~~~~^   344:                 mes "You are cursed and cannot move to any other block for 2 minutes.";   345:                 close;   346:         }[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_survival.txt' line509 column 16    parse_simpleexpr: unmatched ')'   506: callfunc("KO_DL",14);   507:   508: OnTouch:*  509:         if (checkquest(5141,PLAYTIME) == 0){        ~~~~~~~~~~~~~~~~~~~~~~^   510:                 mes "You are cursed and cannot move to any other block for 2 minutes.";   511:                 close;   512:         }[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_survival.txt' line540 column 16    parse_simpleexpr: unmatched ')'   537: callfunc("KO_DL",15);   538:   539: OnTouch:*  540:         if (checkquest(5141,PLAYTIME) == 0){        ~~~~~~~~~~~~~~~~~~~~~~^   541:                 mes "You are cursed and cannot move to any other block for 2 minutes.";   542:                 close;   543:         }[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_survival.txt' line706 column 16    parse_simpleexpr: unmatched ')'   703: callfunc("KO_DL",25);   704:   705: OnTouch:*  706:         if (checkquest(5141,PLAYTIME) == 0){        ~~~~~~~~~~~~~~~~~~~~~~^   707:                 mes "Cannot move because you are cursed.";   708:                 close;   709:         }[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_survival.txt' line837 column 16    parse_simpleexpr: unmatched ')'   834: callfunc("KO_DL",31);   835:   836: OnTouch:*  837:         if (checkquest(5141,PLAYTIME) == 0){        ~~~~~~~~~~~~~~~~~~~~~~^   838:                 mes "You are cursed and cannot move to any other block for 2 minutes.";   839:                 close;   840:         }[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_survival.txt' line1045 column 16    parse_simpleexpr: unmatched ')'  1042: callfunc("KO_DL",40);  1043:  1044: OnTouch:* 1045:         if (checkquest(5137)!=1 || checkquest(5140) != 1){        ~~~~~~~~~~~~~~~~~~~~~~^  1046:                 mes "You should not be here";  1047:                 close2;  1048:                 warp "amatsu",147,136;[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_weaponry.txt' line38 column 17    parse_simpleexpr: unmatched ')'    35: {    36: if (BaseJob!=Job_Ninja){    37:         for (.i=5131; .i<5147; .i++ ){*   38:                 if (checkquest(.i) != -1){erasequest .i;}        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^    39:         }    40:         mes "[Red Leopard Joe]";    41:         mes "Sorry, Your family is not same as ours, is there somethingwrong?";[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_weaponry.txt' line373 column 15    parse_simpleexpr: unmatched ')'   372: {*  373: if (checkquest(5138)==1 && checkquest(5142)==1 && checkquest(5143)==-1 && checkquest(5144)==-1 && checkquest(5145)==-1 ){        ~~~~~~~~~~~~~~^   374:         function KO_WR; function KO_WC; function KO_PF;   375:         @percent = 0; KO_OPT = 0; @wtype = 0; @temp = 0; @grind = 0;   376:         mes "Tool to create weapons.";[Error]: script error in file 'npc/custom/playrok/jobs/2e/KO_weaponry.txt' line505 column 16    parse_simpleexpr: unmatched ')'   504: {*  505:         if (checkquest(5138)==1 && checkquest(5142)==-1 && (checkquest(5143)==1 || checkquest(5144)==1) && checkquest(5145)==1){        ~~~~~~~~~~~~~~~~~~~~~~^   506:         }   507:         else{   508:                 mes "This tool helps you refine your weapons automatically. However you won't need this just now.";

     


  11. This does not work. I think the problem is that "after" the original script, has the "duplicate" command. What should try to clone the NPC, which is already disabled and generates this error. For just test the command on a NPC that does not have the "duplicate" and not getting this error.

     

    Sorry bad english....


  12. 
    
    I'm customizing the apprentice field. I used the following code to disable the NPC that I modified. The NPC who created work and the old are apparently disabled. But is showing this error message when I start the emulator ...
    Is there a best mode to do this so as not to appear this message?
     
    - script Disable -1,{
    OnInit:
    disablenpc "Sprakki#newbe05";
    disablenpc "Brade#newbe02";
    disablenpc "Brade#newbe04";
    disablenpc "Chocolat#newbe06";
    end;
    }

     

    [Error]: npc_enable: Attempted to hide a non-existing NPC 'Sprakki#newbe05' (fla
    g=0).
    [Error]: npc_enable: Attempted to hide a non-existing NPC 'Brade#newbe02' (flag=
    0).
    [Error]: npc_enable: Attempted to hide a non-existing NPC 'Brade#newbe04' (flag=
    0).
    [Error]: npc_enable: Attempted to hide a non-existing NPC 'Chocolat#newbe06' (fl
    ag=0).
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.