Jump to content

RexT

Member
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by RexT

  1. Hey, i managed to add keyboard functionality to my charselect. And everything works fine, for the first login/charselect.

     

    def OnKeyDown(self, key):
    
    			if 1 == key:
    				self.ExitSelect()
    			elif 2 == key:
    				self.SelectSlot(0)
    			elif 3 == key:
    				self.SelectSlot(1)
    			elif 4 == key:
    				self.SelectSlot(2)
    			elif 5 == key:
    				self.SelectSlot(3)
    			elif 6 == key:
    				self.SelectSlot(4)
    
    			elif 28 == key or 57 == key:
    				id = net.GetAccountCharacterSlotDataInteger(self.slot, net.ACCOUNT_CHARACTER_SLOT_ID)
    				if 0 == id:
    					self.CreateCharacter()
    				else:
    					self.StartGame()
    
    			elif 203 == key:
    				self.DecreaseSlotIndex()
    			elif 205 == key:
    				self.IncreaseSlotIndex()
    
    			return True

     

    But once I entered ingame, when I go back to the charselect screen, the keyboard inputs aren't processed anymore. Only by clicking the arrows/buttons with the mouse, I can navigate in that menu.
    How can i fix this?

  2. Hey, I managed to fix everything, but i can't find the right MySQL lib to compile on x64

    Thats the mysql part of my makefile atm:

    # MySQL
    INCDIR += -I/usr/local/include/mysql
    ifeq ($(PLATFORM), 64)
    LIBS = -lmysqlclient -lz -lzstd
    else
    LIBS += /usr/local/lib/mysql/libmysqlclient.a /usr/lib/libz.a /usr/local/lib/libzstd.a
    endif

    Getting this error (of course because the 64-bit path goes nowhere)

    ld: error: unable to find library -lmysqlclient

    When i link to the standard mysql lib (/usr/local/lib/mysql/libmysqlclient.a), i get the i386 incompatible error.

    ld: error: /usr/local/lib/mysql/libmysqlclient.a(libmysql.cc.o) is incompatible with elf_i386_fbsd
    ld: error: /usr/local/lib/mysql/libmysqlclient.a(client.cc.o) is incompatible with elf_i386_fbsd

    Am I just stupid, that I can't figure it out?

  3. Hey,

    i have a question. How do you guys edit your serversrc files? Grab them from your server and edit them with e.g. NP++? Only Edit them locally (and then how?) and update them on your server via git? Or do you prefer a Windows Server and edit them directly in VS?

    Would be nice to get your experience with this stuff. 🙂

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.