• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[8.6] TFS 0.4 - Rev 5885 - 8.6 - Fixed Bugs

Is there anyway to compile this on Windows? There's no CB folder or MSVC folder... I just saw linux files to compile, can you release the windows files? Thanks

Edit:

Is just with me or the npc system is messed?
Also, MartyX distro loads the map a lot faster ;x
 
Last edited:
I tryed to compile it in windows (MVSC) and got this error:

Code:
1>InitializeBuildStatus:
1>  Creating "Release\tfs.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  otpch.cpp
1>  actions.cpp
1>  admin.cpp
1>  allocator.cpp
1>  baseevents.cpp
1>  beds.cpp
1>  chat.cpp
1>  combat.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasemysql.cpp
1>  databasemysqlpp.cpp
1>  databasepgsql.cpp
1>  databasesqlite.cpp
1>  depot.cpp
1>  dispatcher.cpp
1>  exception.cpp
1>  fileloader.cpp
1>  game.cpp
1>  gameservers.cpp
1>  globalevent.cpp
1>  group.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioban.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  itemattributes.cpp
1>  iomarket.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\iomarket.cpp': No such file or directory
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  manager.cpp
1>..\luascript.cpp(767): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  mounts.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\mounts.cpp': No such file or directory
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outfit.cpp
1>  outputmessage.cpp
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>  protocolhttp.cpp
1>  protocollogin.cpp
1>  protocolold.cpp
1>  quests.cpp
1>  raids.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>  spells.cpp
1>..\scriptmanager.cpp(146): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>  status.cpp
1>  talkaction.cpp
1>  teleport.cpp
1>  textlogger.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:38.89
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

What do I do? I took the vc10 folder (and the other folders too) from Rev 5885 and compiled from there.

I really need some help here! Thx,

- - - Updated - - -

Nvm, compiled in win64x and everything works fine! :) War shields and everything. Thank you and REP++ to you.

It's just 1 big problem!
NPC system is messed up. Every time I say "trade" to an NPC the Tibiaclient crashes... I've also tryed NPC lib for rev. 3777 and rev. 3884, but with those the npcs dont focus and answer "hi".

Has anyone solved this? HELP me, I really love this shit!
 
I tryed to compile it in windows (MVSC) and got this error:

Code:
1>InitializeBuildStatus:
1>  Creating "Release\tfs.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1>  otpch.cpp
1>  actions.cpp
1>  admin.cpp
1>  allocator.cpp
1>  baseevents.cpp
1>  beds.cpp
1>  chat.cpp
1>  combat.cpp
1>  condition.cpp
1>  configmanager.cpp
1>  connection.cpp
1>  container.cpp
1>  creature.cpp
1>  creatureevent.cpp
1>  cylinder.cpp
1>  database.cpp
1>  databasemanager.cpp
1>  databasemysql.cpp
1>  databasemysqlpp.cpp
1>  databasepgsql.cpp
1>  databasesqlite.cpp
1>  depot.cpp
1>  dispatcher.cpp
1>  exception.cpp
1>  fileloader.cpp
1>  game.cpp
1>  gameservers.cpp
1>  globalevent.cpp
1>  group.cpp
1>  house.cpp
1>  housetile.cpp
1>  ioban.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  item.cpp
1>  itemattributes.cpp
1>  iomarket.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\iomarket.cpp': No such file or directory
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  manager.cpp
1>..\luascript.cpp(767): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  mounts.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\mounts.cpp': No such file or directory
1>  movement.cpp
1>  networkmessage.cpp
1>  npc.cpp
1>  otserv.cpp
1>  outfit.cpp
1>  outputmessage.cpp
1>  party.cpp
1>  player.cpp
1>  position.cpp
1>  protocol.cpp
1>  protocolgame.cpp
1>  protocolhttp.cpp
1>  protocollogin.cpp
1>  protocolold.cpp
1>  quests.cpp
1>  raids.cpp
1>  scheduler.cpp
1>  scriptmanager.cpp
1>  server.cpp
1>  spawn.cpp
1>  spells.cpp
1>..\scriptmanager.cpp(146): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>  status.cpp
1>  talkaction.cpp
1>  teleport.cpp
1>  textlogger.cpp
1>  thing.cpp
1>  tile.cpp
1>  tools.cpp
1>  trashholder.cpp
1>  vocation.cpp
1>  waitlist.cpp
1>  weapons.cpp
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:38.89
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

What do I do? I took the vc10 folder (and the other folders too) from Rev 5885 and compiled from there.

I really need some help here! Thx,

- - - Updated - - -

Nvm, compiled in win64x and everything works fine! :) War shields and everything. Thank you and REP++ to you.

It's just 1 big problem!
NPC system is messed up. Every time I say "trade" to an NPC the Tibiaclient crashes... I've also tryed NPC lib for rev. 3777 and rev. 3884, but with those the npcs dont focus and answer "hi".

Has anyone solved this? HELP me, I really love this shit!

fix msvc project

@i tried on windows and got debug on login...
 
It shall be msvc not mvsc, sorry for misspelling;) I had some problem when I compiled but I removed iomarket.cpp and mounts.cpp in msvc and compiled in x64 instead of x32 and the compile succeeded :) Only got some problem with "trade" with NPC and account_viplist in mysql database (errors in console) and I'm trying to fix it without any success...
 
It shall be msvc not mvsc, sorry for misspelling;) I had some problem when I compiled but I removed iomarket.cpp and mounts.cpp in msvc and compiled in x64 instead of x32 and the compile succeeded :) Only got some problem with "trade" with NPC and account_viplist in mysql database (errors in console) and I'm trying to fix it without any success...

Using Default Files from this distro i have one bug

Say trade to Npc and Debugs client

No modifications / Tested in Ubuntu 10.04 and 12.04

Same problem
 
Yeah, its something with either npc/lib or npc.cpp/npc.h in sources. Can someone more experienced person have a look at this? I'll REP++ the shit out of that someone!
 
post the debug log and the error in console

There is no error in console. The tibiaclient crashes and nothing is shown in console...

Here's what's shown in client error window:
Code:
Debug Assertion 8.60 Utils.cpp 531
Wed Jan 02 18:14:43 2013
...
...
...
Last Packet Types: 122 109 170 109 109 170 107 170 131 180
Last Packet: 122 004 000 083 111 121 097 067 000 064 013 000 064 013 000 012 000 114 111
Player Position:[1023,930,7]
Player Name: GOD(Servername)
Player Action: 056 049 046 049 054 046 049 055 051 046 052 050 058 055 049 055 050
Player.cpp 361:exception occurred, reason:
Network.cpp 946:exception occurred(ErrorCode=0), reason:
Control.cpp 1331:exception occurred(Type=122)(MainWindow=36864864),reason:
Communication.cpp 2294:exception occurred(i=0)(NumberOfWares=4),reason:
Network.cpp 492:exception occurred(MaxLenght=35),reason:
Utils.cpp 531:assertion failed(Position=15)(Size-Lenght=-22993),reason:
Position<=Size-Lenght
(I had to type this code in manually because I don't know how to configure client errors to logs... Took a while :/)

This client error occurs when, like I said before, I type "trade" to an NPC. All other NPC functions works fine.
 
Last edited:
OMFG isn't there someone who can fix the right NPC lib for this rev??? I'll pay that someone srsly! Really need it!

BTW, the only lib who is loading NPC's is rev 3777, except lib in rev 5885 that make the tibia client crash!

With rev.3777 lib, this console errors pops up every time I say "hi" to npc:

Code:
[5/1/2013 13:44:33] [Error - NpcScript Interface] 
[5/1/2013 13:44:33] data/npc/scripts/runes.lua:onCreatureSay
[5/1/2013 13:44:33] Description: 
[5/1/2013 13:44:33] data/npc/lib/npcsystem/npchandler.lua:558: attempt to call global 'getDistanceTo' (a nil value)
[5/1/2013 13:44:33] stack traceback:
[5/1/2013 13:44:33] 	data/npc/lib/npcsystem/npchandler.lua:558: in function 'isInRange'
[5/1/2013 13:44:33] 	data/npc/lib/npcsystem/npchandler.lua:381: in function 'onCreatureSay'
[5/1/2013 13:44:33] 	data/npc/scripts/runes.lua:8: in function <data/npc/scripts/runes.lua:8>
 
Ok so how stable and stuff is this compared to rev 3884 also is this windows 64 bit? Im tryn to get libs so i can get it compiled and edit stuff i cnt find libs for 3884 either
 
I've not tested 3884 but I've tested this in 48 hours without any crashes or buggs. I think it's more stable than both 3777 and 3884. You can find libs in Subversions?
 
Debug Error on login in server...
PHP:
Debug Assertion 8.60 Objects.cpp 277
Thu Jan 17 02:40:18 2013
Graphic Engine: DirectX9 (2)
Operating System: Windows 7 Ultimate Edition 64 Bit in BRA
Processor: Intel Core i5 750 @ 2.6
Video Card: ATI Radeon HD 4800 SERI
Last Packet Types: 100 010 031 100 020 031 020 031 100 020
Last Packet: 010 017 004 000 016 050 000 000 100 089 003 196 003 007 163 017
Player Position: [857,964,7]
Player Name: Galego (Forgotten)
Player Action: 054 057 046 049 057 055 046 051 052 046 049 051 048 058 055 049 055 050
Player.cpp 361: exception occurred, reason:
Network.cpp 946: exception occurred (ErrorCode = 0), reason:
Control.cpp 1331: exception occurred (Type = 100) (MainWindow = 42041176), reason:
Communication.cpp 1681: exception occurred (PlayerX = 857) (PlayerY = 964), reason:
Communication.cpp 1659: exception occurred (xmin = 0) (ymin = 0), reason:
Communication.cpp 1638: exception occurred (Type = 43775) (OldType = 254), reason:
Objects.cpp 280: exception occurred (Type = 43775) (Flag = 10), reason:
Objects.cpp 277: assertion failed (Type = 43775) (ObjectProperties->high() = 11703), reason:
In(Type,ObjectProperties->low(),ObjectProperties->high())
 
Back
Top