Subversion Repository Public Repository

fonline_sdk

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Commits for fonline_sdk/

Revision Author Commited Message
804 cvet picture cvet Wed 12 Sep, 2018 18:29:13 +0000

Fixed bug related to deferred calls.

803 cvet picture cvet Wed 12 Sep, 2018 14:26:58 +0000

Client cache moved to single file ‘Cache.bin’.
Fixed deferred calls timing again.

802 cvet picture cvet Wed 12 Sep, 2018 08:54:21 +0000

Added MongoDB, UnQLite and Memory types storage for world data.
Fixed deferred calls fire time.

801 cvet picture cvet Tue 11 Sep, 2018 10:02:32 +0000

Fixes for previous commit.
Android SDK API gained to 19.

800 cvet picture cvet Mon 10 Sep, 2018 15:32:23 +0000

Improved new world saving system – now entities save not in single call, but when their change.
Mac builds temporary excluded due to loss of mac book.

799 cvet picture cvet Fri 15 Dec, 2017 14:51:39 +0000

Different fixes.

798 cvet picture cvet Sat 09 Sep, 2017 11:55:42 +0000

Engine skip empty resource folders.
Current documentation moved to Obsolete subfolder due to not actual.
Rain assets moved to sdk core.

797 cvet picture cvet Sat 09 Sep, 2017 06:23:37 +0000

Config option Modules changed to ProjectFiles.
Now meaning of this paths are just project files without some abstract ‘module’ meaning.

Assimp library (for load non fbx graphics) updated to version 4.0.1.

796 cvet picture cvet Wed 06 Sep, 2017 13:30:40 +0000

Profiler crash fix.
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

795 cvet picture cvet Mon 04 Sep, 2017 16:07:53 +0000

Fixed string::lower/upper hanging.
Fixed GetTextInfo returned width value.

794 cvet picture cvet Mon 04 Sep, 2017 13:54:54 +0000

Improved properties component system.

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.

793 cvet picture cvet Sat 02 Sep, 2017 12:09:41 +0000

Fix for mapper maps saving (bug since 790).
Added Temporary property flag for ignore storing it on disk.
Added python script for launching test web server (SimpleWebServer.py) for web version testing.

792 cvet picture cvet Fri 01 Sep, 2017 14:21:20 +0000

Fix for Fallout Tactics sprites loading.
Fix for server GUI stability.

791 cvet picture cvet Thu 31 Aug, 2017 16:43:04 +0000

Mapper start fix.
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)

790 cvet picture cvet Tue 29 Aug, 2017 11:44:30 +0000

A lot of refactoring.
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.

789 cvet picture cvet Mon 03 Apr, 2017 13:29:06 +0000

bool __RtAlwaysRun excluded from engine.

788 cvet picture cvet Mon 13 Mar, 2017 10:00:52 +0000

Disabled multiwindow checking.
Now possible to run multiple instances of client.

787 cvet picture cvet Sat 11 Mar, 2017 14:35:49 +0000

Fixed raw resources files preparing.
Added bool __ForceRebuildResources to always rebuild resources and distros during server load.

786 cvet picture cvet Mon 06 Mar, 2017 17:32:49 +0000

Excluded stuff related to AI.

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;

785 cvet picture cvet Mon 13 Feb, 2017 12:33:03 +0000

Fixed calling of EventItemInit.

784 cvet picture cvet Mon 13 Feb, 2017 10:37:38 +0000

Fixed bug in Web build.

783 cvet picture cvet Mon 13 Feb, 2017 07:22:52 +0000

Fixed Web build that was broken few updates ago.
Added debug version of Web build to diagnose problems.

782 cvet picture cvet Fri 10 Feb, 2017 13:25:49 +0000

Fixed Mac/Linux newly created directories permission to 0777.

781 cvet picture cvet Fri 10 Feb, 2017 10:52:35 +0000

Linux and macOS builds now packed in tar/tar.gz files with correct chmod (777).

780 cvet picture cvet Thu 09 Feb, 2017 15:02:51 +0000

Added 32-bit Linux builds.