1. 19 Sep, 2018 3 commits
  2. 18 Sep, 2018 1 commit
  3. 12 Sep, 2018 3 commits
  4. 11 Sep, 2018 1 commit
  5. 10 Sep, 2018 1 commit
  6. 15 Dec, 2017 1 commit
  7. 09 Sep, 2017 2 commits
  8. 06 Sep, 2017 1 commit
    • cvet's avatar
      Profiler crash fix. · 8b42fb17
      cvet authored
      Hash resolving crash fix.
      
      Improved line splitters " \" for key value text format.
      Line must ends with space or tab + revert slash (\).
      All begin/end spaces are trimmed.
      For example line
      MyKey = 0 \
          1   \
          2   \
          3
      will become
      MyKey = 0 1 2 3
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@796 71b6ff52-6597-447a-9a87-58edf7a03249
      8b42fb17
  9. 04 Sep, 2017 2 commits
    • cvet's avatar
      Fixed string::lower/upper hanging. · e940d50e
      cvet authored
      Fixed GetTextInfo returned width value.
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@795 71b6ff52-6597-447a-9a87-58edf7a03249
      e940d50e
    • cvet's avatar
      Improved properties component system. · 3872cdbc
      cvet authored
      To declare component use this syntax:
      #pragma property Entity Component ComponentName
      
      Example of declaration:
      #pragma property "Item Component Drug"
      #pragma property "Item Public uint Drug.Duration"
      #pragma property "Item Public bool Drug.IsForFun"
      #pragma property "Item Component Fuel"
      #pragma property "Item Public bool Fuel.IsBio"
      
      And using:
      if( item.Drug != null && item.Drug.IsForFun )
          Log( "Fun drugs!" );
      if( item.Fuel == null )
          return;
      
      For assigning components to entities need type their in proto files
      $Components = Drug Fuel # Special field for describe components list
      IsHidden = false # Regular properties
      Drug.Duration = 100 # Component properties
      Drug.IsForFun = true
      Fuel.IsBio = true
      ...
      
      On this system will be moved item types and different things.
      This useful for grouping variables under one space and restrict accidental access to non correct properties for this entity.
      All possible Ammo_Caliber, Ammo_MaxCount, AmmoCount will be changed to Ammo.Caliber, Ammo.MaxCount, Ammo.Count and etc.
      And if you try access to Ammo.Caliber in item which not contains Ammo component then Null pointer access will happen.
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@794 71b6ff52-6597-447a-9a87-58edf7a03249
      3872cdbc
  10. 02 Sep, 2017 1 commit
  11. 01 Sep, 2017 1 commit
  12. 31 Aug, 2017 1 commit
    • cvet's avatar
      Mapper start fix. · 43009312
      cvet authored
      Added script dict string as key.
      Fixed work with corruption of blockers in BlockLines.
      
      Fixed -run option in compiler.
      Workable global functions in compiler run:
      void Assert(bool condition)
      void ThrowException(string message)
      int Random(int min, int max)
      void Log(string text)
      bool StrToInt(string text, int& result)
      bool StrToFloat(string text, float& result)
      uint GetDistantion(uint16 hexX1, uint16 hexY1, uint16 hexX2, uint16 hexY2)
      uint8 GetDirection(uint16 fromHexX, uint16 fromHexY, uint16 toHexX, uint16 toHexY)
      uint8 GetOffsetDir(uint16 fromHexX, uint16 fromHexY, uint16 toHexX, uint16 toHexY, float offset)
      uint GetTick()
      uint GetAngelScriptProperty(int property)
      void SetAngelScriptProperty(int property, uint value)
      hash GetStrHash(string str)
      string GetHashStr(hash h)
      uint DecodeUTF8(string text, uint& length)
      string EncodeUTF8(uint ucs)
      string[] GetFolderFileNames(string path, string extension, bool includeSubdirs)
      bool DeleteFile(string fileName)
      void CreateDirectoryTree(string path)
      string SHA1(string text)
      string SHA2(string text)
      int SystemCall(string command)
      int SystemCall(string command, string& output)
      void OpenLink(string link)
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@791 71b6ff52-6597-447a-9a87-58edf7a03249
      43009312
  13. 29 Aug, 2017 1 commit
    • cvet's avatar
      A lot of refactoring. · 7e295cc6
      cvet authored
      Fix for '_Raw' resources subfolder copying.
      Changing of mapper item properties now give side effects (PicMap, Light*, Block/Shoot flags, etc).
      In Mapper MapperMap class now just Map.
      Added string Map::FileDir property that holds directory of fomap file.
      Excluded Critter::MoveRandom().
      Fixed crashing on non-3d critter loads with enabled 3d rendering.
      Fixed crashing on 3d effect loading from cache.
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@790 71b6ff52-6597-447a-9a87-58edf7a03249
      7e295cc6
  14. 03 Apr, 2017 1 commit
  15. 13 Mar, 2017 1 commit
  16. 11 Mar, 2017 1 commit
  17. 06 Mar, 2017 1 commit
    • cvet's avatar
      Excluded stuff related to AI. · 2bb22396
      cvet authored
      Added some stuff for control movements:
      void Critter::MoveToCritter(Critter@+ cr, uint cut, bool isRun) - init moving to critter;
      void Critter::MoveToHex(uint16 hexX, uint16 hexY, uint cut, bool isRun) - init moving to hex;
      MovingState Critter::GetMovingState() const - current state;
      void Critter::ResetMovingState(uint& gagId) - reset state to Success and return id of critter/item for GagCritter/GagItem states;
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@786 71b6ff52-6597-447a-9a87-58edf7a03249
      2bb22396
  18. 13 Feb, 2017 3 commits
  19. 10 Feb, 2017 2 commits
  20. 09 Feb, 2017 1 commit
  21. 07 Feb, 2017 1 commit
  22. 04 Feb, 2017 2 commits
  23. 03 Feb, 2017 1 commit
  24. 02 Feb, 2017 1 commit
  25. 01 Feb, 2017 2 commits
  26. 31 Jan, 2017 2 commits
    • cvet's avatar
      Web build index.html patching. · e12fd116
      cvet authored
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@772 71b6ff52-6597-447a-9a87-58edf7a03249
      e12fd116
    • cvet's avatar
      Excluded functions: · 1ee27eb0
      cvet authored
      Critter@+ GetPlayer(string name)
      uint GetPlayerId(string name)
      string GetPlayerName(uint playerId)
      
      Added funtion to retrieve player data, even if he offline:
      const Critter@ GetPlayer(string name)
      
      Added client global variables:
      const bool __IsConnected
      const bool __IsConnecting
      const bool __IsUpdating
      
      Excluded client global variables:
      string __Name
      string __RegName
      string __RegPassword
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@771 71b6ff52-6597-447a-9a87-58edf7a03249
      1ee27eb0
  27. 28 Jan, 2017 1 commit
    • cvet's avatar
      Now player critter after logout going to global map and need restore his place... · e7e2a73f
      cvet authored
      Now player critter after logout going to global map and need restore his place manually when his back.
      Do it in CritterInit callback.
      Added helpers to retrieve last position of player in game before exit:
      uint RefMapId
      hash RefMapPid
      uint RefLocationId
      hash RefLocationPid
      uint RefGlobalMapTripId
      uint RefGlobalMapLeaderId
      
      Deleted stuff related to registration properties, now need provide registration information manually.
      Use Rpc calls functionality.
      
      Changed functions specifications:
      uint CreateLocation(hash locPid, uint16 worldX, uint16 worldY, Critter[] critters) -> Location CreateLocation(hash locPid, uint16 worldX, uint16 worldY, Critter[] critters = null)
      bool Critter::TransitToHex(uint16 hexX, uint16 hexY, uint8 dir) -> void Critter::TransitToHex(uint16 hexX, uint16 hexY, uint8 dir)
      bool Critter::TransitToMap(uint mapId, uint16 hexX, uint16 hexY, uint8 dir) -> void Critter::TransitToMap(Map map, uint16 hexX, uint16 hexY, uint8 dir)
      bool Critter::TransitToMap(uint mapId, hash entire) -> void Critter::TransitToMap(Map map, hash entire)
      bool Critter::TransitToGlobal() -> void Critter::TransitToGlobal()
      bool Critter::TransitToGlobal(Critter[] group) -> void Critter::TransitToGlobal(Critter[] group)
      bool Critter::TransitToGlobalGroup(uint critterId) -> void Critter::TransitToGlobalGroup(Critter leader)
      
      Event where raised exception now automatically returns false.
      
      git-svn-id: https://xp-dev.com/svn/fonline_sdk@770 71b6ff52-6597-447a-9a87-58edf7a03249
      e7e2a73f
  28. 27 Jan, 2017 1 commit