Jump to content

ryden

Retired Staff
  • Posts

    101
  • Joined

  • Last visited

Posts posted by ryden

  1. It's a problem related to that I compiled it in Visual Studio 2008, and Visual Studio 2003 is required so only works in computers that have Visual Studio 2008 installed.

    I am trying to get a Visual Studio 2003, and then I will release it full working. Sorry for the inconvenience.

  2. Another crash relating lua function calls in modules.

    I seriously think that when you load a module, the core should export the addresses of the lua VM functions to the module, so you can also use the compiler that you prefer to code your modules and I think that it will stop these crashes.

    *** glibc detected *** ./mta_server: munmap_chunk(): invalid pointer: 0xb79eb95c *** 
    ======= Backtrace: ========= 
    /lib/libc.so.6[0xb7d8efa6] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so[0xb79b39d4] 
    /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so[0xb4e900b3] 
    /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so[0xb4e93b0c] 
    /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so[0xb4e8fa0c] 
    /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so[0xb4e8fca7] 
    /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so[0xb4e8fff7] 
    /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so(lua_newuserdata+0x1d)[0xb4e8b61d] 
    /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so(_ZN5MySQL5QueryEP9lua_State+0x86)[0xb4e88856] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so[0xb79aa9cb] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so[0xb79b308c] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so[0xb79aabf0] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so[0xb79a80a1] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so[0xb79aa2d7] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so[0xb79aa33f] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(lua_pcall+0x57)[0xb79a7f07] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(_ZNK13CLuaArguments4CallEP8CLuaMainiPS_+0xd7)[0xb78d68eb] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(_ZN9CLuaTimer12ExecuteTimerEP8CLuaMain+0x36)[0xb790b51e] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(_ZN16CLuaTimerManager7DoPulseEP8CLuaMain+0x8b)[0xb790be5b] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(_ZN8CLuaMain7DoPulseEv+0x1b)[0xb7904f3b] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(_ZN11CLuaManager7DoPulseEv+0x46)[0xb79091e2] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(_ZN5CGame7DoPulseEv+0x2ad)[0xb784386b] 
    /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so(_ZN7CServer7DoPulseEv+0x1e)[0xb7810f6a] 
    ./core.so(_ZN15CModManagerImpl7DoPulseEv+0x28)[0xb7bf448e] 
    ./core.so(_ZN11CServerImpl8MainLoopEv+0xaf)[0xb7bf5161] 
    ./core.so(_ZN11CServerImpl3RunEiPPc+0x3d2)[0xb7bf5580] 
    ./core.so(Run+0x34)[0xb7bf5ebc] 
    ./mta_server(__gxx_personality_v0+0x3d6)[0x8048b66] 
    /lib/libc.so.6(__libc_start_main+0xe0)[0xb7d3d400] 
    ./mta_server(__gxx_personality_v0+0x41)[0x80487d1] 
      
    ======= Memory map: ======== 
    08048000-08049000 r-xp 00000000 03:06 33557085   /home/gta/servers/im4.0/mta_server 
    08049000-0804a000 r--p 00000000 03:06 33557085   /home/gta/servers/im4.0/mta_server 
    0804a000-0804b000 rw-p 00001000 03:06 33557085   /home/gta/servers/im4.0/mta_server 
    0804b000-08173000 rw-p 0804b000 00:00 0          [heap] 
    b3dcd000-b3e50000 rw-p b3dcd000 00:00 0 
    b3e50000-b3e51000 ---p b3e50000 00:00 0 
    b3e51000-b4651000 rwxp b3e51000 00:00 0 
    b4651000-b4652000 ---p b4651000 00:00 0 
    b4652000-b4e52000 rwxp b4652000 00:00 0 
    b4e52000-b4e65000 r-xp 00000000 03:05 25195998   /lib/libz.so.1.2.3 
    b4e65000-b4e66000 r--p 00012000 03:05 25195998   /lib/libz.so.1.2.3 
    b4e66000-b4e67000 rw-p 00013000 03:05 25195998   /lib/libz.so.1.2.3 
    b4e73000-b4ec3000 r-xp 00000000 03:06 54681435   /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so 
    b4ec3000-b4ec4000 r--p 0004f000 03:06 54681435   /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so 
    b4ec4000-b4ee9000 rw-p 00050000 03:06 54681435   /home/gta/servers/im4.0/mods/deathmatch/modules/mta_mysql.so 
    b4ee9000-b4eea000 ---p b4ee9000 00:00 0 
    b4eea000-b56ea000 rwxp b4eea000 00:00 0 
    b56ea000-b56eb000 ---p b56ea000 00:00 0 
    b56eb000-b5eeb000 rwxp b56eb000 00:00 0 
    b5eeb000-b5eec000 ---p b5eeb000 00:00 0 
    b5eec000-b66ec000 rwxp b5eec000 00:00 0 
    b66ec000-b66ed000 ---p b66ec000 00:00 0 
    b66ed000-b6eed000 rwxp b66ed000 00:00 0 
    b6eed000-b6eee000 ---p b6eed000 00:00 0 
    b6eee000-b76ee000 rwxp b6eee000 00:00 0 
    b76ee000-b7a0e000 r-xp 00000000 03:06 46287503   /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so 
    b7a0e000-b7a0f000 r--p 00320000 03:06 46287503   /home/gta/servers/im4.0/mods/deathmatch/deathmatch.so 
    b7a0f000-b7a43000 rw-p 00321000 03:06 46287503   /home/gta/servers/im4.0/mods/Abortado (core dumped) 
    

  3. Try this code as a client-side script in a gamemode type resource:

    buggy = { } 
      
    function buggy.Start(resource) 
      if (resource ~= getThisResource()) then return end 
      local self = buggy 
      
      bindKey("tab", "both", buggy.onTab) 
      addEventHandler("onClientResourceStop", getRootElement(), buggy.Stop) 
    end 
      
    function buggy.Stop(resource) 
      if (resource ~= getThisResource()) then return end 
      local self = buggy 
      
      if (self.theTimer) then 
        killTimer(self.theTimer) 
      end 
    end 
      
    function buggy.PrintText() 
      outputChatBox("You still have the TAB key pressed #1") 
    end 
      
    function buggy.onTab(key, keyState) 
      local self = buggy 
      
      if (keyState == "down") then 
        self.theTimer = setTimer(buggy.PrintText, 1500, 0) 
      else 
        killTimer(self.theTimer) 
        self.theTimer = nil 
      end 
    end 
      
    addEventHandler("onClientResourceStart", getRootElement(), buggy.Start) 
    

    Hold TAB pressed and look what is happening. Everything is OK, every 1.5 seconds it displays the message in the chatbox.

    Now change that "You still have the TAB key pressed #1" string to, for example, "You still have the TAB key pressed #2". Type in the console "restart TheContainingResource", and it will download the new script with the string modified. Now hold TAB key down again, and you will see that old and new scripts were executed, showing two different messages in the chat box every 1.5 seconds.

    If it doesn't fail in the first try, change the string again to #3 and restart the resource again. Sometimes doesn't fail in the first try.

    It works fine again if you /reconnect to the server.

  4. /root/mtasa/mtasadm_srv-gentoo_v1.0-dp2/mods/deathmatch/deathmatch.so: undefined symbol: _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i

    I still that error in the dp2 when starting the server. I previously had glibc-2.6, now glibc-2.7, and also libstdc++-v3:

    [ebuild R ] sys-libs/glibc-2.7-r1 USE="nls -debug -gd -glibc-compat20 -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla" 0 kB

    [ebuild R ] sys-libs/libstdc++-v3-3.3.6 USE="nls nptl -build (-multilib)" 0 kB

    It is boring having to recompile all the system after recompiling the glibc, so I would be very thankful if you give us the exact versions that was the gentoo distribution built in.

    Thanks!

  5. RPG servers are often the most popular in San Andreas multiplayer mods, and animations made a big step in their development. It's really a pitty that MTA, having a great API that allows you to create awesome RPG servers, hasn't animations support.

    My suggestion is just that, adding support for animations.

×
×
  • Create New...