Subversion Repository Public Repository


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

Entry Size Revision Updated
Binaries 799 Fri 15 Dec, 2017 14:51:39 +0000
Documentation 798 Sat 09 Sep, 2017 11:55:42 +0000
Modules 798 Sat 09 Sep, 2017 11:55:42 +0000
FOnline.cfg 3.7K 798 Sat 09 Sep, 2017 11:55:42 +0000
License.txt 9.3K 610 Mon 23 May, 2016 16:22:23 +0000
ReadMe.txt 434 bytes 610 Mon 23 May, 2016 16:22:23 +0000

Commits for fonline_sdk/

Revision Author Commited Message
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 \
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 )

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.