• 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!

Feature True dual wielding for TFS 1.x

Wow this has some nice versatility.
Because of the way its done, you "could" have one handed crossbows...

Gonna save this for later.
You can now?

<item id="2455" article="a" name="crossbow">
<attribute key="weight" value="4000" />
<attribute key="weaponType" value="distance" />
<attribute key="slotType" value="two-handed" /> -- or value "one-handed"
<attribute key="ammoType" value="bolt" />
<attribute key="range" value="5" />
</item>
 
same question how i do to apply the patch?
1. You need to move "patch.exe" and the .patch archive to your Source root.
2. Then open CMD with Admin permission
3. Move into directories to your source root, using cd command.
4. Execute this command:
patch.exe -p1 --binary -i PATCHARCHIVE.patch
In this case
patch.exe -p1 --binary -i dual-wielding.patch

Basically, you need to move to your source dir into prompt, and execute the command. Find by myself :g
 
What error you getting? i just did it and compiled fine.

Code:
CMakeFiles/tfs.dir/src/player.cpp.o: In function `Player::getWeapon(bool) const':
player.cpp:(.text+0x2460): undefined reference to `Player::isDualWielding() const'
CMakeFiles/tfs.dir/src/player.cpp.o: In function `Player::getAttackSpeed() const':
player.cpp:(.text+0x82d4): undefined reference to `Player::isDualWielding() const'
CMakeFiles/tfs.dir/src/weapons.cpp.o: In function `Weapon::playerWeaponCheck(Player*, Creature*, unsigned char) const':
weapons.cpp:(.text+0x167a): undefined reference to `Player::isDualWielding() const'
CMakeFiles/tfs.dir/src/weapons.cpp.o: In function `Weapon::onUsedWeapon(Player*, Item*, Tile*) const':
weapons.cpp:(.text+0x1c5d): undefined reference to `Player::isDualWielding() const'
collect2: error: ld returned 1 exit status
 
Paste here code from those errors (double-click them).
 
one-handed weapon and shield, skill level up first fight and shield and not leveling sword, axe and club skill ,sorry for bad English!
 
check.png

TFS 1.2
 
ERRORS:
Code:
1>..\src\combat.cpp(502): warning C4189: 'targetPlayer': local variable is initialized but not referenced
1>  commands.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>  databasetasks.cpp
1>  depotchest.cpp
1>  depotlocker.cpp
1>  events.cpp
1>  fileloader.cpp
1>  game.cpp
1>  globalevent.cpp
1>  groups.cpp
1>  guild.cpp
1>  house.cpp
1>  housetile.cpp
1>  inbox.cpp
1>  ioguild.cpp
1>  iologindata.cpp
1>  iomap.cpp
1>  iomapserialize.cpp
1>  iomarket.cpp
1>  item.cpp
1>  items.cpp
1>  luascript.cpp
1>  mailbox.cpp
1>  map.cpp
1>  monster.cpp
1>  monsters.cpp
1>  mounts.cpp
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>  protocolgamebase.cpp
1>..\src\player.cpp(2558): error C2039: 'ALLOW_DUAL_WIELDING': is not a member of 'ConfigManager'
1>  c:\users\main\desktop\compile\tfs 1.2 10.90 + cast\src\configmanager.h(26): note: see declaration of 'ConfigManager'
1>..\src\player.cpp(2558): error C2065: 'ALLOW_DUAL_WIELDING': undeclared identifier
1>..\src\player.cpp(2603): error C2039: 'ALLOW_DUAL_WIELDING': is not a member of 'ConfigManager'
1>  c:\users\main\desktop\compile\tfs 1.2 10.90 + cast\src\configmanager.h(26): note: see declaration of 'ConfigManager'
1>..\src\player.cpp(2603): error C2065: 'ALLOW_DUAL_WIELDING': undeclared identifier
1>  protocolspectator.cpp
1>  protocollogin.cpp
1>..\src\protocolspectator.cpp(364): warning C4100: 'broadcast': unreferenced formal parameter
1>..\src\protocollogin.cpp(47): warning C4100: 'version': unreferenced formal parameter
1>  protocolold.cpp
 
Hmm cant duel wield seems problem is deeper then I thought.
 
Back
Top