Jump to content

tmoitoi

Inactive Member
  • Posts

    158
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by tmoitoi

  1. Hi there, first, thanks for you sharing, But there is a problem for users of 2008 c++ compilator: std::vector::emplace_back Used in PythonWhisper.h: {if (std::find(b_writing[i].begin(), b_writing[i].end(), name) == b_writing[i].end()) b_writing[i].emplace_back(name);}; Isn't supported ([Hidden Content]) due to older c++ version. Anyway, thanks for the share
  2. Exactly, didn't understand why the grp was not in the lib folder, anyway ?
  3. Fix for invisible background ? create grp.py into lib client with this content: # this module is an OS/2 oriented replacement for the grp standard # extension module. # written by Andrew MacIntyre, April 2001. # updated July 2003, adding field accessor support # note that this implementation checks whether ":" or ";" as used as # the field separator character. """Replacement for grp standard extension module, intended for use on OS/2 and similar systems which don't normally have an /etc/group file. The standard Unix group database is an ASCII text file with 4 fields per record (line), separated by a colon: - group name (string) - group password (optional encrypted string) - group id (integer) - group members (comma delimited list of userids, with no spaces) Note that members are only included in the group file for groups that aren't their primary groups. (see the section 8.2 of the Python Library Reference) This implementation differs from the standard Unix implementation by allowing use of the platform's native path separator character - ';' on OS/2, DOS and MS-Windows - as the field separator in addition to the Unix standard ":". The module looks for the group database at the following locations (in order first to last): - ${ETC_GROUP} (or %ETC_GROUP%) - ${ETC}/group (or %ETC%/group) - ${PYTHONHOME}/Etc/group (or %PYTHONHOME%/Etc/group) Classes ------- None Functions --------- getgrgid(gid) - return the record for group-id gid as a 4-tuple getgrnam(name) - return the record for group 'name' as a 4-tuple getgrall() - return a list of 4-tuples, each tuple being one record (NOTE: the order is arbitrary) Attributes ---------- group_file - the path of the group database file """ import os # try and find the group file __group_path = [] if os.environ.has_key('ETC_GROUP'): __group_path.append(os.environ['ETC_GROUP']) if os.environ.has_key('ETC'): __group_path.append('%s/group' % os.environ['ETC']) if os.environ.has_key('PYTHONHOME'): __group_path.append('%s/Etc/group' % os.environ['PYTHONHOME']) group_file = None for __i in __group_path: try: __f = open(__i, 'r') __f.close() group_file = __i break except: pass # decide what field separator we can try to use - Unix standard, with # the platform's path separator as an option. No special field conversion # handlers are required for the group file. __field_sep = [':'] if os.pathsep: if os.pathsep != ':': __field_sep.append(os.pathsep) # helper routine to identify which separator character is in use def __get_field_sep(record): fs = None for c in __field_sep: # there should be 3 delimiter characters (for 4 fields) if record.count(c) == 3: fs = c break if fs: return fs else: raise KeyError, '>> group database fields not delimited <<' # class to match the new record field name accessors. # the resulting object is intended to behave like a read-only tuple, # with each member also accessible by a field name. class Group: def __init__(self, name, passwd, gid, mem): self.__dict__['gr_name'] = name self.__dict__['gr_passwd'] = passwd self.__dict__['gr_gid'] = gid self.__dict__['gr_mem'] = mem self.__dict__['_record'] = (self.gr_name, self.gr_passwd, self.gr_gid, self.gr_mem) def __len__(self): return 4 def __getitem__(self, key): return self._record[key] def __setattr__(self, name, value): raise AttributeError('attribute read-only: %s' % name) def __repr__(self): return str(self._record) def __cmp__(self, other): this = str(self._record) if this == other: return 0 elif this < other: return -1 else: return 1 # read the whole file, parsing each entry into tuple form # with dictionaries to speed recall by GID or group name def __read_group_file(): if group_file: group = open(group_file, 'r') else: raise KeyError, '>> no group database <<' gidx = {} namx = {} sep = None while 1: entry = group.readline().strip() if len(entry) > 3: if sep is None: sep = __get_field_sep(entry) fields = entry.split(sep) fields[2] = int(fields[2]) fields[3] = [f.strip() for f in fields[3].split(',')] record = Group(*fields) if not gidx.has_key(fields[2]): gidx[fields[2]] = record if not namx.has_key(fields[0]): namx[fields[0]] = record elif len(entry) > 0: pass # skip empty or malformed records else: break group.close() if len(gidx) == 0: raise KeyError return (gidx, namx) # return the group database entry by GID def getgrgid(gid): g, n = __read_group_file() return g[gid] # return the group database entry by group name def getgrnam(name): g, n = __read_group_file() return n[name] # return all the group database entries def getgrall(): g, n = __read_group_file() return g.values() # test harness if __name__ == '__main__': getgrall() And add on the interfacemodule.py: import grp Require Python 2.7 else you must replace function by background image.
  4. Not understand why ? can upload back the gif ?^^
  5. Hi, i'm searching while a long time now to remove the automatic point gived on the align, anyone know where can I ? Thanks
  6. Hi ! I'm doing some videos for my server but i've one ask, anyone know where to go to remove the NPC flag on the game or the launcher and what file ? Thanks
  7. Hi ! anyone know how to do this system or if any tut was on for it ? i've see 3 different videos. I can do it easly but i've few problems then maybe.. Thanks !
  8. Just don't use NPC value. Use horse OR monster value if u want them kill possible.
  9. Hi, i've a bug with your system. When i change item (Sword to another sword) it appear as new but that's not coz i've already it on my stuff, this bug doesn't prudce with costums. Help please, nice work.
  10. Hi, not really sure about how-to help you but, anything edited on the python ? if you disable the system for 3 empire chat all work well again ? I think about an edit on the python to "return;" when that's an emoticon registred on py can think the problem.
  11. Hi there ! I'm in hollidas right now and i've put my SRC into my Fbsd 9.2 server using 64 bits, and.. in my home that's a vm with 32 bits. Can we compil with 64 bits ? because i've these error while i compile: In file included from debug_allocator.h:5, from stdafx.h:7, from TrafficProfiler.cpp:10: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from debug_allocator.h:5, from stdafx.h:7, from MarkManager.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from debug_allocator.h:5, from stdafx.h:7, from MarkImage.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from debug_allocator.h:5, from stdafx.h:7, from MarkConvert.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from debug_allocator.h:5, from stdafx.h:7, from block_country.cpp:10: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from OXEvent.cpp:9: char.h:734: error: integer constant is too large for 'long' type In file included from cipher.h:6, from desc.h:7, from OXEvent.cpp:12: ../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type In file included from ani.cpp:11: char.h:734: error: integer constant is too large for 'long' type OXEvent.cpp:220:19: warning: null character(s) preserved in literal In file included from debug_allocator.h:5, from stdafx.h:7, from ani.cpp:10: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from debug_allocator.h:5, from stdafx.h:7, from OXEvent.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from cipher.h:6, from desc.h:7, from arena.cpp:5: ../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type In file included from debug_allocator.h:5, from stdafx.h:7, from banword.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from BattleArena.cpp:6: char.h:734: error: integer constant is too large for 'long' type In file included from debug_allocator.h:5, from stdafx.h:7, from BattleArena.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from arena.cpp:9: char.h:734: error: integer constant is too large for 'long' type gmake: *** [OBJDIR/TrafficProfiler.o] Error 1 gmake: *** Waiting for unfinished jobs.... In file included from debug_allocator.h:5, from stdafx.h:7, from arena.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter gmake: *** [OBJDIR/MarkConvert.o] Error 1 In file included from building.cpp:8: char.h:734: error: integer constant is too large for 'long' type In file included from cipher.h:6, from desc.h:7, from building.cpp:12: ../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type In file included from debug_allocator.h:5, from stdafx.h:7, from buffer_manager.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter gmake: *** [OBJDIR/MarkImage.o] Error 1 In file included from debug_allocator.h:5, from stdafx.h:7, from building.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from cipher.h:6, from desc.h:7, from arena.cpp:5: ../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type gmake: *** [OBJDIR/block_country.o] Error 1 gmake: *** [OBJDIR/MarkManager.o] Error 1 In file included from debug_allocator.h:5, from stdafx.h:7, from blend_item.cpp:10: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter In file included from cipher.h:6, from desc.h:7, from battle.cpp:4: ../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type arena.cpp: In function 'long int ready_to_start_event(LPEVENT, long int)': arena.cpp:327: warning: overflow in implicit constant conversion arena.cpp:328: warning: overflow in implicit constant conversion banword.cpp: In member function 'bool CBanwordManager::Initialize(TBanwordTable*, WORD)': banword.cpp:24: warning: format '%zu' expects type 'size_t', but argument 4 has type 'size_t' In file included from castle.cpp:21: char.h:734: error: integer constant is too large for 'long' type gmake: *** [OBJDIR/buffer_manager.o] Error 1 In file included from debug_allocator.h:5, from stdafx.h:7, from castle.cpp:12: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter gmake: *** [OBJDIR/banword.o] Error 1 In file included from battle.cpp:5: char.h:734: error: integer constant is too large for 'long' type In file included from debug_allocator.h:5, from stdafx.h:7, from battle.cpp:1: /usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter /usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter gmake: *** [OBJDIR/ani.o] Error 1 gmake: *** [OBJDIR/blend_item.o] Error 1 gmake: *** [OBJDIR/arena.o] Error 1 In file included from cipher.h:6, from desc.h:7, from OXEvent.cpp:12: ../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type OXEvent.cpp: In member function 'void COXEventManager::WarpToAudience()': OXEvent.cpp:375: warning: overflow in implicit constant conversion OXEvent.cpp:376: warning: overflow in implicit constant conversion OXEvent.cpp:377: warning: overflow in implicit constant conversion OXEvent.cpp:378: warning: overflow in implicit constant conversion OXEvent.cpp:379: warning: overflow in implicit constant conversion gmake: *** [OBJDIR/BattleArena.o] Error 1 In file included from cipher.h:6, from desc.h:7, from building.cpp:12: ../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type gmake: *** [OBJDIR/OXEvent.o] Error 1 In file included from cipher.h:6, from desc.h:7, from battle.cpp:4: ../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type gmake: *** [OBJDIR/castle.o] Error 1 gmake: *** [OBJDIR/building.o] Error 1 gmake: *** [OBJDIR/battle.o] Error 1 Any help will be much appreciated ! Thanks guys
  12. Hi, thanks for help, i've never think about the " = value" x) To close.
  13. Sure but, what about packet header: 24, last: 3 62 ? Maybe i'm totaly stupid xD but i just don't understand actually.
  14. Okay but that's not in these files, I speak about how to understand the packet header returned by my client crash into my source files ? Thanks
  15. Hi, I've frequent crash in the game with the follwing error: 0426 21:48:32855 :: Unknown packet header: 102, last: 19 19 And 0426 21:51:07884 :: Unknown packet header: 24, last: 3 62 How can I find it into my server ? Thanks
  16. Yes, i've do some tests, when i put the name, there's the name in the horse_name table, but, when i restart the server and spawn my pet, name come virgin again like it:
  17. There's a problem With your syntax the change work but when i reboot the server, my pet is with a virgin name An idea ? thanks
  18. Thanks you (Merci l'ami ) PS: If you guys too are borred of the spawn of the horse every rename just comment or edit like this: Switch: ch->HorseSummon(false, true); ch->HorseSummon(true, true); To: ch->HorseSummon(false, false);
  19. Hi there, like my little say, I want to allow back my Horse name to be how we want, actualy it's restricted to be something like "Petname" But on my old gamecore 2089m it was allowed to be like "Dat" "Or Dat" "Or dat <3" however we want Someone can help me to do it back into my source ? Thanks guys
×
×
  • 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.