Page 40 of 44 FirstFirst ... 303839404142 ... LastLast
Results 391 to 400 of 435

Thread: Patch Progress

  1. #391
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,269

    Default

    I tried on my Linux VPs again and it seems to work now. Tested get date function and that's working, will continue tests when the boss isn't looking :-P

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  2. #392
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,269

    Default

    Ok i have run some tests and here are my findings


    I ran the following script on both Windows and Linux v1.118

    Windows OS: Windows 10
    Linux: Ubuntu 16.04 x64bit

    Test.scr

    main:

    if(level.run_test)
    end

    level.run_test = 1;

    wait 10;


    println("\n\n~~~~~~~Testing getdate~~~~~~~~~~~");

    println("~~getdate(0)~~");
    println(getdate(0));

    println("~~getdate(%D)~~");
    println(getdate("%D"));

    println("~~getdate(%A)~~");
    println(getdate("%A"));

    println("~~getdate(%y)~~");
    println(getdate("%y"));

    println("\n\n~~~~~~~Testing gettime~~~~~~~~~~~");

    println("~~gettime(0)~~");
    println(gettime(0));

    println("\n\n~~~~~~~Testing get entity~~~~~~~~~~~");

    println("Getting 10 entities (not players)");
    local.min = getcvar("sv_maxclients")
    local.min = int local.min

    for(local.i = local.min;local.i < 10;local.i++)
    {
    local.ent = getentity(local.i);
    }


    println("\n\n~~~~~~~Testing Local storage~~~~~~~~~~~");

    println("~~setproperty(purple, elephant)~~");
    local.res = setproperty "purple" "elephant"
    if(local.res == 0){println("Success"); } else {println("Error");}

    println("~~getproperty(purple)~~");
    local.res = getproperty "purple";
    if(local.res == 0){println("Error"); } else {println(local.res);}

    println("\n\n~~~~~~~Testing Player inventory~~~~~~~~~~~");

    level waittill playerspawn

    local.player = $player[1]
    local.player.name = netname local.player

    println("Printing inv of player 1 = " + local.player.name );


    for(local.i = 0;local.i < local.player.inventory.size;local.i++)
    {
    println("Player inv slot " + local.i + " = " + local.player.inventory[local.i].classname);
    }

    end


    Produces the following results

    Windows
    Code:
    ~~~~~~~Testing getdate~~~~~~~~~~~
    ~~getdate(0)~~
    0
    ~~getdate(%D)~~
    
    ~~getdate(%A)~~
    Wednesday
    ~~getdate(%y)~~
    18
    
    
    ~~~~~~~Testing gettime~~~~~~~~~~~
    ~~gettime(0)~~
    21:11:44
    
    
    ~~~~~~~Testing get entity~~~~~~~~~~~
    Getting 10 entities (not players)
    
    
    ~~~~~~~Testing Local storage~~~~~~~~~~~
    ~~setproperty(purple, elephant)~~
    Success
    ~~getproperty(purple)~~
    elephant
    
    
    ~~~~~~~Testing Player inventory~~~~~~~~~~~
    Printing inv of player 1 = Purple Elephant (  .  Y  .  )
    Player inv slot 0 = Weapon
    Player inv slot 1 = Weapon
    Player inv slot 2 = Weapon
    Linux
    Code:
    ~~~~~~~Testing getdate~~~~~~~~~~~
    ~~getdate(0)~~
    0
    ~~getdate(%D)~~
    06/06/18
    ~~getdate(%A)~~
    Wednesday
    ~~getdate(%y)~~
    18
    
    
    ~~~~~~~Testing gettime~~~~~~~~~~~
    ~~gettime(0)~~
    15:26:44
    
    
    ~~~~~~~Testing get entity~~~~~~~~~~~
    Getting 10 entities (not players)
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    
    
    ~~~~~~~Testing Local storage~~~~~~~~~~~
    ~~setproperty(purple, elephant)~~
    Success
    ~~getproperty(purple)~~
    purple
    
    ~~~~~~~Testing Player inventory~~~~~~~~~~~
    Printing inv of player 1 = Purple Elephant (  .  Y  .  )
    Got signal 11 - Segmentation fault, faulty address is 0x209cc
    Crash Recover Attempt will take place!
    Execution path:
     --> ./fgameded.so(PL_Inventory+0x1d7) [0xf6e411c5]
     --> ./fgameded.so(PL_Inventory+0x1d7) [0xf6e411c5]
     --> ./fgamededmohaa.so(_ZN8ScriptVM7ExecuteEP14ScriptVariablei9const_str+0x242b) [0xf69fbe9b]
     --> ./fgamededmohaa.so(_ZN12ScriptThread21ScriptExecuteInternalEP14ScriptVariablei+0xdd) [0xf69ed1fd]
     --> ./fgamededmohaa.so(_ZN12ScriptThread7ExecuteEv+0x8f) [0xf69ed31f]
     --> ./fgamededmohaa.so(_ZN8Listener10UnregisterE9const_str+0x161) [0xf6ab7c31]
     --> ./fgamededmohaa.so(_ZN6Player4InitEv+0x632) [0xf6ae5782]
     --> ./fgamededmohaa.so(_ZN6Player7RespawnEP13Event_GAMEDLL+0x44) [0xf6ad4cf4]
     --> ./fgameded.so(Player_Respawn_hook+0x9a) [0xf6e46830]
     --> ./fgamededmohaa.so(_ZN8Listener12ProcessEventEP13Event_GAMEDLL+0x4f) [0xf6ab890f]
     --> ./fgamededmohaa.so(L_ProcessPendingEvents+0x4e) [0xf6ab93ae]
     --> ./fgamededmohaa.so(G_RunFrame+0x1cf) [0xf6a91fef]
     --> ./fgameded.so(G_RunFrame+0x8c0) [0xf6e454f5]
     --> ./mohaa_lnxded() [0x808d7ab]
     --> ./mohaa_lnxded() [0x8067486]
     --> ./mohaa_lnxded() [0x809726e]
     --> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf7) [0xf7445637]
     --> ./mohaa_lnxded(_Znwj+0x71) [0x8049c41]
    Summary

    getdate:
    Windows: Broken on %D
    Linux: Working

    gettime:
    Windows: Working
    Linux: Working

    getentity:
    Windows: Working
    Linux: Broken still ( not in patch )?

    local storage:
    Windows: Seems to be working
    Linux: Error, returns key instead of value

    Inventory:
    Windows: Working
    Linux: Crash, see crash above.

    If others would like to copy the above script and run it, note that the last one ( inventory ) requires a player to be spawned in the game with weapons.

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  3. #393
    Administrator James's Avatar
    Join Date
    May 2010
    Location
    on the intraweb
    Posts
    3,180

    Default

    We're making some progress which is really great to see! I'm psyched about this!!

  4. #394
    Developer Sor's Avatar
    Join Date
    Aug 2010
    Location
    The Medieval City of Bruges
    Posts
    747

    Default

    The getentity command is completely broken on Windows.

    It still produces the "out of scope error" which was the original problem.
    Before, at around entity number 868, it just gives this error even though there should be more entity slots, used or not.

    My test script:
    Code:
        local.n = int(getcvar("maxentities"));
        println("Total entities: " + local.n);
        println("Total clients: " + (getcvar("sv_maxclients")));
        for (local.i = 0; local.i < local.n; local.i++)
        {
            local.ent = getentity(local.i);
            if (typeof(local.ent) == "int") // 'out of scope', pointless to go any further
                break;
            if (local.ent && typeof(local.ent) == "listener")
                println(local.i + ": " + local.ent.classname);
            else
                println(local.i + ": " + (string(local.ent)));
        }
    In dm/mohdm2 on the latest patch I get the following output:
    Code:
    Total entities: 1024
    Total clients: 20
    0: NULL
    1: NULL
    2: NULL
    3: NULL
    4: NULL
    5: NULL
    6: NULL
    7: NULL
    8: NULL
    9: NULL
    10: NULL
    11: NULL
    12: NULL
    13: NULL
    14: NULL
    15: NULL
    16: NULL
    17: NULL
    18: NULL
    19: NULL
    20: NULL
    21: NULL
    22: NULL
    23: NULL
    24: NULL
    25: NULL
    26: NULL
    27: NULL
    28: NULL
    29: NULL
    30: NULL
    31: NULL
    32: NULL
    33: NULL
    34: NULL
    35: NULL
    36: NULL
    37: NULL
    38: NULL
    39: NULL
    40: NULL
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    Before I got this:
    Code:
    Total entities: 1024
    Total clients: 20
    0: NULL
    1: NULL
    2: NULL
    3: NULL
    4: NULL
    5: NULL
    6: NULL
    7: NULL
    8: NULL
    9: NULL
    10: NULL
    11: NULL
    12: NULL
    13: NULL
    14: NULL
    15: NULL
    16: NULL
    17: NULL
    18: NULL
    19: NULL
    20: FuncLadder
    21: ScriptSlave
    22: ScriptSlave
    23: ScriptSlave
    24: ScriptSlave
    25: ScriptSlave
    26: ScriptSlave
    27: ScriptSlave
    28: ScriptSlave
    29: FuncLadder
    30: ScriptSlave
    31: ScriptSlave
    32: ScriptSlave
    33: FuncLadder
    34: ScriptSlave
    35: ScriptSlave
    36: ScriptSlave
    37: TriggerUse
    38: TriggerUse
    39: TriggerUse
    40: NULL
    41: NULL
    42: NULL
    43: NULL
    44: NULL
    45: NULL
    46: NULL
    47: NULL
    48: NULL
    49: NULL
    50: NULL
    51: NULL
    52: NULL
    53: NULL
    54: NULL
    55: NULL
    56: NULL
    57: NULL
    58: NULL
    59: NULL
    60: NULL
    61: NULL
    62: NULL
    63: NULL
    64: NULL
    65: NULL
    66: NULL
    67: NULL
    68: NULL
    69: NULL
    70: NULL
    71: NULL
    72: NULL
    73: NULL
    74: NULL
    75: NULL
    76: NULL
    77: NULL
    78: NULL
    79: NULL
    80: NULL
    81: NULL
    82: NULL
    83: NULL
    84: NULL
    85: NULL
    86: NULL
    87: NULL
    88: NULL
    89: NULL
    90: NULL
    91: NULL
    92: NULL
    93: NULL
    94: NULL
    95: NULL
    96: NULL
    97: NULL
    98: NULL
    99: NULL
    100: NULL
    101: NULL
    102: NULL
    103: NULL
    104: NULL
    105: NULL
    106: NULL
    107: NULL
    108: NULL
    109: NULL
    110: NULL
    111: NULL
    112: NULL
    113: NULL
    114: NULL
    115: NULL
    116: NULL
    117: NULL
    118: NULL
    119: NULL
    120: NULL
    121: NULL
    122: NULL
    123: NULL
    124: NULL
    125: NULL
    126: NULL
    127: NULL
    128: NULL
    129: NULL
    130: NULL
    131: NULL
    132: NULL
    133: NULL
    134: NULL
    135: NULL
    136: NULL
    137: NULL
    138: NULL
    139: NULL
    140: NULL
    141: NULL
    142: NULL
    143: NULL
    144: NULL
    145: NULL
    146: NULL
    147: NULL
    148: NULL
    149: NULL
    150: NULL
    151: NULL
    152: NULL
    153: NULL
    154: NULL
    155: NULL
    156: NULL
    157: NULL
    158: NULL
    159: NULL
    160: NULL
    161: NULL
    162: NULL
    163: NULL
    164: NULL
    165: NULL
    166: NULL
    167: NULL
    168: NULL
    169: NULL
    170: NULL
    171: NULL
    172: NULL
    173: NULL
    174: NULL
    175: NULL
    176: NULL
    177: NULL
    178: NULL
    179: NULL
    180: NULL
    181: NULL
    182: NULL
    183: NULL
    184: NULL
    185: NULL
    186: NULL
    187: NULL
    188: NULL
    189: NULL
    190: NULL
    191: NULL
    192: NULL
    193: NULL
    194: NULL
    195: NULL
    196: NULL
    197: NULL
    198: NULL
    199: NULL
    200: NULL
    201: NULL
    202: NULL
    203: NULL
    204: NULL
    205: NULL
    206: NULL
    207: NULL
    208: NULL
    209: NULL
    210: NULL
    211: NULL
    212: NULL
    213: NULL
    214: NULL
    215: NULL
    216: NULL
    217: NULL
    218: NULL
    219: NULL
    220: NULL
    221: NULL
    222: NULL
    223: NULL
    224: NULL
    225: NULL
    226: NULL
    227: NULL
    228: NULL
    229: NULL
    230: NULL
    231: NULL
    232: NULL
    233: NULL
    234: NULL
    235: NULL
    236: NULL
    237: NULL
    238: NULL
    239: NULL
    240: NULL
    241: NULL
    242: NULL
    243: NULL
    244: NULL
    245: NULL
    246: NULL
    247: NULL
    248: NULL
    249: NULL
    250: NULL
    251: NULL
    252: NULL
    253: NULL
    254: NULL
    255: NULL
    256: NULL
    257: NULL
    258: NULL
    259: NULL
    260: NULL
    261: NULL
    262: NULL
    263: NULL
    264: NULL
    265: NULL
    266: NULL
    267: NULL
    268: NULL
    269: NULL
    270: NULL
    271: NULL
    272: NULL
    273: NULL
    274: NULL
    275: NULL
    276: NULL
    277: NULL
    278: NULL
    279: NULL
    280: NULL
    281: NULL
    282: NULL
    283: NULL
    284: NULL
    285: NULL
    286: NULL
    287: NULL
    288: NULL
    289: NULL
    290: NULL
    291: NULL
    292: NULL
    293: NULL
    294: NULL
    295: NULL
    296: NULL
    297: NULL
    298: NULL
    299: NULL
    300: NULL
    301: NULL
    302: NULL
    303: NULL
    304: NULL
    305: NULL
    306: NULL
    307: NULL
    308: NULL
    309: NULL
    310: NULL
    311: NULL
    312: NULL
    313: NULL
    314: NULL
    315: NULL
    316: NULL
    317: NULL
    318: NULL
    319: NULL
    320: NULL
    321: NULL
    322: NULL
    323: NULL
    324: NULL
    325: NULL
    326: NULL
    327: NULL
    328: NULL
    329: NULL
    330: NULL
    331: NULL
    332: NULL
    333: NULL
    334: NULL
    335: NULL
    336: NULL
    337: NULL
    338: NULL
    339: NULL
    340: NULL
    341: NULL
    342: NULL
    343: NULL
    344: NULL
    345: NULL
    346: NULL
    347: NULL
    348: NULL
    349: NULL
    350: NULL
    351: NULL
    352: NULL
    353: NULL
    354: NULL
    355: NULL
    356: NULL
    357: NULL
    358: NULL
    359: NULL
    360: NULL
    361: NULL
    362: NULL
    363: NULL
    364: NULL
    365: NULL
    366: NULL
    367: NULL
    368: NULL
    369: NULL
    370: NULL
    371: NULL
    372: NULL
    373: NULL
    374: NULL
    375: NULL
    376: NULL
    377: NULL
    378: NULL
    379: NULL
    380: NULL
    381: NULL
    382: NULL
    383: NULL
    384: NULL
    385: NULL
    386: NULL
    387: NULL
    388: NULL
    389: NULL
    390: NULL
    391: NULL
    392: NULL
    393: NULL
    394: NULL
    395: NULL
    396: NULL
    397: NULL
    398: NULL
    399: NULL
    400: NULL
    401: NULL
    402: NULL
    403: NULL
    404: NULL
    405: NULL
    406: NULL
    407: NULL
    408: NULL
    409: NULL
    410: NULL
    411: NULL
    412: NULL
    413: NULL
    414: NULL
    415: NULL
    416: NULL
    417: NULL
    418: NULL
    419: NULL
    420: NULL
    421: NULL
    422: NULL
    423: NULL
    424: NULL
    425: NULL
    426: NULL
    427: NULL
    428: NULL
    429: NULL
    430: NULL
    431: NULL
    432: NULL
    433: NULL
    434: NULL
    435: NULL
    436: NULL
    437: NULL
    438: NULL
    439: NULL
    440: NULL
    441: NULL
    442: NULL
    443: NULL
    444: NULL
    445: NULL
    446: NULL
    447: NULL
    448: NULL
    449: NULL
    450: NULL
    451: NULL
    452: NULL
    453: NULL
    454: NULL
    455: NULL
    456: NULL
    457: NULL
    458: NULL
    459: NULL
    460: NULL
    461: NULL
    462: NULL
    463: NULL
    464: NULL
    465: NULL
    466: NULL
    467: NULL
    468: NULL
    469: NULL
    470: NULL
    471: NULL
    472: NULL
    473: NULL
    474: NULL
    475: NULL
    476: NULL
    477: NULL
    478: NULL
    479: NULL
    480: NULL
    481: NULL
    482: NULL
    483: NULL
    484: NULL
    485: NULL
    486: NULL
    487: NULL
    488: NULL
    489: NULL
    490: NULL
    491: NULL
    492: NULL
    493: NULL
    494: NULL
    495: NULL
    496: NULL
    497: NULL
    498: NULL
    499: NULL
    500: NULL
    501: NULL
    502: NULL
    503: NULL
    504: NULL
    505: NULL
    506: NULL
    507: NULL
    508: NULL
    509: NULL
    510: NULL
    511: NULL
    512: NULL
    513: NULL
    514: NULL
    515: NULL
    516: NULL
    517: NULL
    518: NULL
    519: NULL
    520: NULL
    521: NULL
    522: NULL
    523: NULL
    524: NULL
    525: NULL
    526: NULL
    527: NULL
    528: NULL
    529: NULL
    530: NULL
    531: NULL
    532: NULL
    533: NULL
    534: NULL
    535: NULL
    536: NULL
    537: NULL
    538: NULL
    539: NULL
    540: NULL
    541: NULL
    542: NULL
    543: NULL
    544: NULL
    545: NULL
    546: NULL
    547: NULL
    548: NULL
    549: NULL
    550: NULL
    551: NULL
    552: NULL
    553: NULL
    554: NULL
    555: NULL
    556: NULL
    557: NULL
    558: NULL
    559: NULL
    560: NULL
    561: NULL
    562: NULL
    563: NULL
    564: NULL
    565: NULL
    566: NULL
    567: NULL
    568: NULL
    569: NULL
    570: NULL
    571: NULL
    572: NULL
    573: NULL
    574: NULL
    575: NULL
    576: NULL
    577: NULL
    578: NULL
    579: NULL
    580: NULL
    581: NULL
    582: NULL
    583: NULL
    584: NULL
    585: NULL
    586: NULL
    587: NULL
    588: NULL
    589: NULL
    590: NULL
    591: NULL
    592: NULL
    593: NULL
    594: NULL
    595: NULL
    596: NULL
    597: NULL
    598: NULL
    599: NULL
    600: NULL
    601: NULL
    602: NULL
    603: NULL
    604: NULL
    605: NULL
    606: NULL
    607: NULL
    608: NULL
    609: NULL
    610: NULL
    611: NULL
    612: NULL
    613: NULL
    614: NULL
    615: NULL
    616: NULL
    617: NULL
    618: NULL
    619: NULL
    620: NULL
    621: NULL
    622: NULL
    623: NULL
    624: NULL
    625: NULL
    626: NULL
    627: NULL
    628: NULL
    629: NULL
    630: NULL
    631: NULL
    632: NULL
    633: NULL
    634: NULL
    635: NULL
    636: NULL
    637: NULL
    638: NULL
    639: NULL
    640: NULL
    641: NULL
    642: NULL
    643: NULL
    644: NULL
    645: NULL
    646: NULL
    647: NULL
    648: NULL
    649: NULL
    650: NULL
    651: NULL
    652: NULL
    653: NULL
    654: NULL
    655: NULL
    656: NULL
    657: NULL
    658: NULL
    659: NULL
    660: NULL
    661: NULL
    662: NULL
    663: NULL
    664: NULL
    665: NULL
    666: NULL
    667: NULL
    668: NULL
    669: NULL
    670: NULL
    671: NULL
    672: NULL
    673: NULL
    674: NULL
    675: NULL
    676: NULL
    677: NULL
    678: NULL
    679: NULL
    680: NULL
    681: NULL
    682: NULL
    683: NULL
    684: NULL
    685: NULL
    686: NULL
    687: NULL
    688: NULL
    689: NULL
    690: NULL
    691: NULL
    692: NULL
    693: NULL
    694: NULL
    695: NULL
    696: NULL
    697: NULL
    698: NULL
    699: NULL
    700: NULL
    701: NULL
    702: NULL
    703: NULL
    704: NULL
    705: NULL
    706: NULL
    707: NULL
    708: NULL
    709: NULL
    710: NULL
    711: NULL
    712: NULL
    713: NULL
    714: NULL
    715: NULL
    716: NULL
    717: NULL
    718: NULL
    719: NULL
    720: NULL
    721: NULL
    722: NULL
    723: NULL
    724: NULL
    725: NULL
    726: NULL
    727: NULL
    728: NULL
    729: NULL
    730: NULL
    731: NULL
    732: NULL
    733: NULL
    734: NULL
    735: NULL
    736: NULL
    737: NULL
    738: NULL
    739: NULL
    740: NULL
    741: NULL
    742: NULL
    743: NULL
    744: NULL
    745: NULL
    746: NULL
    747: NULL
    748: NULL
    749: NULL
    750: NULL
    751: NULL
    752: NULL
    753: NULL
    754: NULL
    755: NULL
    756: NULL
    757: NULL
    758: NULL
    759: NULL
    760: NULL
    761: NULL
    762: NULL
    763: NULL
    764: NULL
    765: NULL
    766: NULL
    767: NULL
    768: NULL
    769: NULL
    770: NULL
    771: NULL
    772: NULL
    773: NULL
    774: NULL
    775: NULL
    776: NULL
    777: NULL
    778: NULL
    779: NULL
    780: NULL
    781: NULL
    782: NULL
    783: NULL
    784: NULL
    785: NULL
    786: NULL
    787: NULL
    788: NULL
    789: NULL
    790: NULL
    791: NULL
    792: NULL
    793: NULL
    794: NULL
    795: NULL
    796: NULL
    797: NULL
    798: NULL
    799: NULL
    800: NULL
    801: NULL
    802: NULL
    803: NULL
    804: NULL
    805: NULL
    806: NULL
    807: NULL
    808: NULL
    809: NULL
    810: NULL
    811: NULL
    812: NULL
    813: NULL
    814: NULL
    815: NULL
    816: NULL
    817: NULL
    818: NULL
    819: NULL
    820: NULL
    821: NULL
    822: NULL
    823: NULL
    824: NULL
    825: NULL
    826: NULL
    827: NULL
    828: NULL
    829: NULL
    830: NULL
    831: NULL
    832: NULL
    833: NULL
    834: NULL
    835: NULL
    836: NULL
    837: NULL
    838: NULL
    839: NULL
    840: NULL
    841: NULL
    842: NULL
    843: NULL
    844: NULL
    845: NULL
    846: NULL
    847: NULL
    848: NULL
    849: NULL
    850: NULL
    851: NULL
    852: NULL
    853: NULL
    854: NULL
    855: NULL
    856: NULL
    857: NULL
    858: NULL
    859: NULL
    860: NULL
    861: NULL
    862: NULL
    863: NULL
    864: NULL
    865: NULL
    866: NULL
    867: NULL
    868: NULL
    Reborn SCRIPT ERROR: Entity number out of scope - getentity!
    On other maps like dm/mohdm1 it just straight up crashes.
    2018-06-07 13_56_34-MOHAA_server (Debugging) - Microsoft Visual Studio (Administrator).jpg

    I have yet to test other commands or the new get-/setproperty commands.
    Morpheus Script (MoH) => You try to shoot yourself in the foot only to discover that MorpheusScript already shot your foot for you.

  5. #395
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    LocalStorage has bug in Linux.. Yeah.. it seems like fetching entites is broken in general both on Linux and Windows. .inventory command makes use of it internally and it's crashing no matter hwat I try to do.. I have to investigate the problem more..

    getdate with %D may not work on Windows build, because it was introduced with C99 standard and MSVC6 uses C89 from what I remember, but still it's just a shortcut.

  6. #396

    Default

    am i the only one getting a crash when using 'rcon map' and 'rcon gamemap' on win10?

  7. #397

    Default

    Quote Originally Posted by Razo[R]apiD View Post

    getdate with %D may not work on Windows build, because it was introduced with C99 standard and MSVC6 uses C89 from what I remember, but still it's just a shortcut.

    The problem is the uppercase if you use lower case works:


    local.day = getdate("%d")


    Code:
    D: 08
    Im on windows 7 Home.

  8. #398
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    Quote Originally Posted by DoubleKill View Post
    The problem is the uppercase if you use lower case works:


    local.day = getdate("%d")


    Code:
    D: 08
    Im on windows 7 Home.
    %d and %D are different

    Code:
    %d	Day of the month, zero-padded (01-31)	23
    %D	Short MM/DD/YY date, equivalent to %m/%d/%y	08/23/01

  9. #399
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    @Zappa

    I can confirm crashes on Windows.. still trying to figure it out.

    I've fixed other bugs, so now .inventory and getentity should work properly both on Linux and Windows, plus I've fixed local storage on Linux.

  10. #400
    Developer Sor's Avatar
    Join Date
    Aug 2010
    Location
    The Medieval City of Bruges
    Posts
    747

    Default

    Razo, I think there's a memory leak in the traced command. I was using the standard trace command about 2,2 million times (don't ask why) and I didn't notice anything remarkable to the memory footprint of the process. Once I switched over to the traced command, the memory skyrocketed and breached the 2GB limit in a matter of seconds. This was in a loop where the same variable was overwritten with the results. No processing. Usually removing all references to an array, like setting it to NIL, will have the game deallocate it. I've tested this with a ~120mb array of vectors. However it seems the result arrays returned by the traced command are not being deallocated this way.

    I know you're busy but could you look into this?

    To produce a memory footprint large enough to see this relatively quickly, you'll need to bypass the built-in loop protections and disable developer mode. I used these before and after the loop:
    Code:
    process_heavy_begin local.label:
        //println("[" + getdate(0) + gettime(0) + "]: begin heavy process: " + local.label);
        setcvar "developer" "0";
        level.loop_protection = 0;
    end;
    
    
    process_heavy_end local.label:
        level.loop_protection = 1;
        setcvar "developer" "1";
        //println("[" + getdate(0) + gettime(0) + "]: end heavy process: " + local.label);
    end;
    Morpheus Script (MoH) => You try to shoot yourself in the foot only to discover that MorpheusScript already shot your foot for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •