[10.77+ - TFS 1.2] The Forgotten [WAR] Server v1.1 (UPDATED 17/12/15)

Discussion in 'Data Packs' started by mdwilliams, Jul 12, 2015.

Tags:
  1. weverton

    weverton Member

    Joined:
    May 30, 2009
    Messages:
    104
    Likes Received:
    2
    Best Answers:
    0
    Hello when look at items and the ground does not appear
     
  2. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    Try this instead?

    The below code will replace only the code I previously posted
    Code (Text):
    1.  
    2. self:sendTextMessage(MESSAGE_INFO_DESCR, "" .. description .. "")
    3.   if thing:isCreature() then
    4.     if thing:isPlayer() then
    5.       self:sendTextMessage(MESSAGE_INFO_DESCR, "Kills: " .. thing:getStorageValue(fragStor) .. " Deaths: " .. thing:getStorageValue(deathStor) .. "")
    6.     end
    7.   end
    8.  
     
    LuisPro and weverton like this.
  3. EwR

    EwR Member

    Joined:
    Aug 28, 2013
    Messages:
    94
    Likes Received:
    3
    Best Answers:
    0
    now i cant log with players x(
     
  4. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    What have you changed?
     
  5. Lbtg

    Lbtg Well-Known Member

    Joined:
    Nov 22, 2008
    Messages:
    1,840
    Likes Received:
    40
    Best Answers:
    0
    Looks amazing , sadly havent pc would defently try this :)
     
  6. impulss

    impulss New Member

    Joined:
    Sep 3, 2010
    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    This is awesome thanks mate! Going to give this one a crack for sure!
     
  7. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    I never got around to fixing all the little issues because I never ran the server in production - if you do come across any problems feel free to post here and I will do my best to fix them for you.

    UPDATE 17-12-15: VERSION 1.1 IS READY - DOWNLOAD LINKS HAVE BEEN UPDATED.

    Change Log:
    V1.1
    - GM/GOD characters can now log in
    - onLook frags/deaths now works correctly and doesn't interfere with other 'looks'
    - Shops/DP added to map with teleporter from each temple
    - Original Simple War OT map added to the new map
    - Other minor issues fixed

    Live Game Server:
    Thanks to Don Daniello and spigu.net we have a live game server. Although the primary purpose of the live server is simply for the enjoyment of the community, it will also be used as a production testing environment.
    An advertisement thread will be created shortly and linked at the top of this post, but for now you can find the game server at DOMINADO.ORG.
    The website is currently using Znote AAC with the widnet theme converted by Znote and an awful banner created by me. If design is your thing and you want to help out...please start with a banner!
    I have not bothered putting this on any server list yet, so don't expect to see players online. I'll sort all that out once I've fixed all the known issues and released the latest update.
     
    Last edited by a moderator: Apr 21, 2018
  8. Deckard

    Deckard New Member

    Joined:
    Apr 25, 2015
    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    [​IMG]

    When i try log in with a normal character, o a god character, i got this error.

    I use the last rev compiled TFS 1.2
     
    Last edited by a moderator: Apr 21, 2018
  9. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    It looks like you have not put the war_config.lua where it needs to be (same place as config.lua)
    As for the other errors I am not sure - i'll take a look at what changes have happened in TFS1.2 lately. My datapack has no changes in login.lua or logout.lua.
    For reference, I am using this exact datapack on a live server right now without any console errors.

    Edit:
    No significant changes in TFS 1.2 lately. I am going to compile master now under windows and test the exact datapack to be sure.

    @Deckard
    Sorry for taking so long, but I finally got around to compiling on windows and giving the datapack a try - sure enough it had problems! Somehow I omitted some files when I ZIP'ed it.
    I've fixed this now and will update the main post. You can also use this download link:

    The Forgotten [WAR] Server v1.1 PL1

    [​IMG]
     
    Last edited by a moderator: Apr 21, 2018
  10. GOD javii

    GOD javii New Member

    Joined:
    Jul 18, 2015
    Messages:
    25
    Likes Received:
    4
    Best Answers:
    0
    @mdwilliams
    if this version of the server compiled with OTx do cause some error?
    since this Datapack this with codes to tfs1.1
     
  11. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    Should be okay or require only small changes that anyone on the support board should be able to assist with if required.
     
  12. GOD javii

    GOD javii New Member

    Joined:
    Jul 18, 2015
    Messages:
    25
    Likes Received:
    4
    Best Answers:
    0
    @mdwilliams
    you can implemetar the war system for Otx to vercion 10.98 -11.00? as there is a data pack, I leave the thread, https://github.com/malucooo/otxserver-testing/
    not if you can help me by sending me the download link because I lost a lot when trying to make the necessary changes, hope and help me heartfriend, thank you!

    PS: if you can send it by MP
     
  13. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    I'm sorry but I don't have time to work on this at the moment =[
     
  14. xLosT

    xLosT Active Member

    Joined:
    Jan 11, 2010
    Messages:
    1,032
    Likes Received:
    11
    Best Answers:
    0
    i found one bug
    i add storages for vip user and work for sorc, druid and paladin
    but with knight character received level and skills but dont login
    Code (Text):
    1.  
    2. Lua Script Error: [CreatureScript Interface]
    3. data/creaturescripts/scripts/tfws_creaturescripts/warlogin.lua:onLogin
    4. ...reaturescripts/scripts/tfws_creaturescripts/warlogin.lua:235: attempt to concatenate a nil value
    5. stack traceback:
    6.         [C]: in function '__concat'
    7.         ...reaturescripts/scripts/tfws_creaturescripts/warlogin.lua:235: in function <...reaturescripts/scripts/tfws_creaturescripts/warlogin.lua:3>
    8.  
    @mdwilliams sorry, received level, not skills
     
    Last edited by a moderator: Apr 21, 2018
  15. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    @xLosT
    I haven't tested this, but it looks like it's just a case-sensitivity issue in one of the variables.

    - Open your war_login.lua
    - Find "KnightMeleeUp1 = 110"
    - Change to "knightMeleeUp1 = 110"
    - Save & Close

    I hope this helps
    Merry Christmas & Happy New Year!

    A bug was reported in my frag reward script, here is the new one:

    Code (Text):
    1.  
    2. dofile("war_config.lua")
    3.  
    4. -- CREDIT TO NINJA @ OTLAND FOR THE BASE SCRIPT
    5. -- REF: https://otland.net/threads/tfs-1-0-experience-from-killing-higher-level-players.212691/#post-2039964
    6.  
    7. function onKill(cid, target, lastHit)
    8.  
    9.     local attackPlayer = Player(target)
    10.  
    11.     local reward = {
    12.             item = rewardItem,
    13.             count = rewardCount
    14.             }
    15.  
    16.     if not attackPlayer then
    17.         return true
    18.     end
    19.  
    20.     for id, damage in pairs(attackPlayer:getDamageMap()) do
    21.         local player = Player(id)
    22.         if player then
    23.             if player:getIp() ~= target:getIp() then
    24.                 local experience = attackPlayer:getExperience()
    25.                 local expFormula = (experience * expMultiplier)
    26.                 local bonusExpFormula = (experience * bonusExpMultiplier)
    27.  
    28.                 if player:getLevel() <= maximumLevel then
    29.                     player:addExperience(math.floor(expFormula), true)
    30.                     if player:getStorageValue(extraExpStor) >= 1 then
    31.                         player:addExperience(math.floor(bonusExpFormula), true)
    32.                         player:setStorageValue(extraExpStor, player:getStorageValue(extraExpStor) - 1)
    33.                         player:sendTextMessage(MESSAGE_INFO_DESCR, "Bonus frag EXP added! " .. player:getStorageValue(extraExpStor) .. " bonus frags remaining!")
    34.                     end
    35.                 end
    36.    
    37.                 player:addItem(reward.item, reward.count)
    38.                 player:setStorageValue(fragStor, player:getStorageValue(fragStor) + 1)
    39.  
    40.                 if player:getStorageValue(doubleFragRewardStor) >= 1 then
    41.                     player:addItem(reward.item, reward.count)
    42.                     player:setStorageValue(doubleFragRewardStor, player:getStorageValue(doubleFragRewardStor) -1)
    43.                     player:sendTextMessage(MESSAGE_INFO_DESCR, "Bonus frag reward added! " .. player:getStorageValue(doubleFragRewardStor) .. " bonus frags remaining!")
    44.                 end
    45.             end
    46.         end
    47.     end
    48. end
    49.  
     
    Last edited by a moderator: Apr 21, 2018
    xLosT likes this.
  16. Imereth Popis

    Imereth Popis dopera.sytes.net

    Joined:
    Jan 30, 2017
    Messages:
    107
    Likes Received:
    12
    Best Answers:
    1
    When I compile the SRC in the main post I open the TFS machine and the error is:

    Code (Text):
    1. A newer version of items.otb is required
    Then I replace from the SRC the items.otb and it does not start with the level 80 and shit.

    Some help?
     
  17. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    My apologies @Imereth Popis, the source I have linked in the main post is for the master branch of the forgotten server project (Which was correct at the time of release, but has now moved passed compatibility with this datapack)
    The sources you will require for everything to 'just work' will be here: GitHub - otland/forgottenserver at 1.2

    @Imereth Popis also just to make sure you are following the correct procedure here:
    - Download this datapack
    - Compile the source to get your binary/exe
    - Move the binary/exe to the parent directory of the datapacks 'data' directory (the binary/exe should be with the config.lua, war_config.lua)
    - Execute the binary/exe

    It shouldn't be too hard to get this running with the latest versions of TFS either. Follow the same procedure but with the latest source code / nightly build. You may have to change out some assets in the databack to be compatible though (e.g. the data/items/items.otbm & items.xml files)
     
    Last edited by a moderator: Apr 21, 2018
    Imereth Popis likes this.
  18. Imereth Popis

    Imereth Popis dopera.sytes.net

    Joined:
    Jan 30, 2017
    Messages:
    107
    Likes Received:
    12
    Best Answers:
    1
    Thanks you for answering that fast

    That's the move. I tried with the 1.2 TFS, thanks It worked. The problem is when I replace the items.otbm and items.xml, the characters does not appear with the item set's. I don't want to change a lot of code cause I want no errors.

    I have to say that it's a perfect server, but I want to make it working it out 100%.

    Thanks you in advance.
     
  19. mdwilliams

    mdwilliams Premium User Premium User

    Joined:
    Nov 15, 2007
    Messages:
    575
    Likes Received:
    104
    Best Answers:
    0
    If the item ID's in the different items.xml you are using do not match the original (official) - there will be issues.

    To fix the specific issue of characters not getting their item sets (provided it is due to item id's being incompatible) it should be as simple as updating the item ID's as seen in war_config.lua

    Code (Text):
    1. .. extract
    2. ----FIRST ITEMS------------------------------------------------
    3. commonItems = {
    4.                 ---------ALL VOCATIONS---------
    5.   {itemid=1988, count=1},     -- backpack
    6.   {itemid=2120, count=1},     -- rope
    7.   {itemid=5710, count=1},     -- shovel
    8.   {itemid=2420, count=1},     -- machete
    9.   {itemid=2789, count=10},    -- brown mushrooms
    10.   {itemid=2305, count=1},     -- fire bomb rune  
    11.   {itemid=2261, count=1},     -- destroy field rune
    12. }
    13.  
    14. firstItems = {
    15.              
    16.   {                 ---------SORCERER ITEMS---------
    17.     {itemid=2323, count=1},     -- hat of the mad          
    18.     {itemid=8871, count=1},     -- focus cape              
    19.     {itemid=7730, count=1},     -- blue legs              
    20.     {itemid=2195, count=1},     -- boots of haste          
    21.     {itemid=8902, count=1},     -- spellbook of mind control
    22.     {itemid=2187, count=1},     -- wand of inferno        
    23.                              
    24.     {itemid=2268, count=1},     -- sd
    25.     {itemid=2273, count=1},     -- uh
    26.     {itemid=7590, count=1},     -- gmp
    27.     {itemid=2293, count=1},     -- mw
    28.   },
    29.   {                 ---------DRUID ITEMS---------
    30.     {itemid=2323, count=1},     -- hat of the mad
    31.     {itemid=8871, count=1},     -- focus cape
    32.     {itemid=7730, count=1},     -- blue legs
    33.     {itemid=2195, count=1},     -- boots of haste
    34.     {itemid=8902, count=1},     -- spellbook of mind control
    35.     {itemid=2183, count=1},     -- hailstorm rod
    36.  
    37.     {itemid=2268, count=1},     -- sd
    38.     {itemid=2273, count=1},     -- uh
    39.     {itemid=7590, count=1},     -- gmp
    40.     {itemid=2293, count=1},     -- mw
    41.     {itemid=2269, count=1},     -- wg
    42.     {itemid=2278, count=1},     -- para
    43.   },
    44.   {                 ---------PALADIN ITEMS---------
    45.     {itemid=2493, count=1},     -- demon helmet
    46.     {itemid=8891, count=1},     -- paladin armor
    47.     {itemid=7730, count=1},     -- blue legs
    48.     {itemid=2195, count=1},     -- boots of haste
    49.     {itemid=2514, count=1},     -- mastermind shield
    50.     {itemid=7368, count=1},     -- assassin stars
    51.  
    52.     {itemid=2268, count=1},     -- sd
    53.     {itemid=2273, count=1},     -- uh
    54.     {itemid=8472, count=1},     -- gsp
    55.     {itemid=7589, count=1},     -- smp
    56.     {itemid=7588, count=1},     -- shp
    57.     {itemid=2293, count=1},     -- mw
    58.   },
    59.   {                 ---------KNIGHT ITEMS---------
    60.     {itemid=2493, count=1},     -- demon helmet
    61.     {itemid=2472, count=1},     -- magic plate armor
    62.     {itemid=2470, count=1},     -- golden legs
    63.     {itemid=2195, count=1},     -- boots of haste
    64.     {itemid=2514, count=1},     -- mastermind shield
    65.     {itemid=2400, count=1},     -- magic sword
    66.  
    67.     {itemid=7620, count=1},     -- mp
    68.     {itemid=7591, count=1},     -- ghp
    69.     {itemid=8473, count=1},     -- uhp
    70.     {itemid=2273, count=1},     -- uh
    71.     {itemid=2293, count=1},     -- mw
    72.   }
    73. }
    74. extract ..
    75.  
     
  20. Imereth Popis

    Imereth Popis dopera.sytes.net

    Joined:
    Jan 30, 2017
    Messages:
    107
    Likes Received:
    12
    Best Answers:
    1
    This evening I will try this. Thank you a lot. I'll tell you some when done. +rep to the post
     

Share This Page

Loading...