Subversion Repository Public Repository

fonline_sdk

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

1
File is too big or a binary file

Commits for fonline_sdk/Binaries/Client/Web/FOnline_Debug.js.mem

Diff revisions: vs.
Revision Author Commited Message
827 Diff Diff cvet picture cvet Fri 19 Oct, 2018 22:17:13 +0000

Fixed cache compression issue from previous commit.

826 Diff Diff cvet picture cvet Fri 19 Oct, 2018 20:06:02 +0000

Fixed update files renaming if its already exists.
Fixed events cache clearing that gives crashing.
Skip items fade on entering to map.
Added EventScreenScroll client callback.
Different fixes to improve stability.

824 Diff Diff cvet picture cvet Tue 16 Oct, 2018 09:19:40 +0000

Added additional function for web requests
void YieldWebRequest(string url, const array<string>@+ headers, string post, bool& success, string& result)

Added function for retrieving unix timestamp
uint GetUnixTime()

Mapper items now deleted instantly.

822 Diff Diff cvet picture cvet Wed 10 Oct, 2018 20:47:29 +0000

Server now also writes log file.
Time in log represents current local time not since start.

821 Diff Diff cvet picture cvet Tue 09 Oct, 2018 23:59:22 +0000

Added soft scrolling for critter following.
Signature of function
void LockScreenScroll(Critter cr, bool unlockIfSame = false)
changed to
void LockScreenScroll(Critter cr, bool softLock, bool unlockIfSame = false)

Fixed 32bit client crashing.

820 Diff Diff cvet picture cvet Tue 09 Oct, 2018 20:19:33 +0000

From engine excluded hardcoded specific item protos and item types/components.
New items flags
bool IsStatic – determine that item not generated and still in single instance for all map instances;
bool IsWall – determine that is wall for mapper interface, contour drawing, lowest draw order, for correct lighting calculations and minimap;
bool IsScenery – determine that is scenery for mapper interface, minimap, contour drawing and lowest draw order against other items on hex;
bool IsCanOpen – engine handles item open/close state and affect bool Opened property (doors and containers);
bool IsScrollBlock – instead of special hex now used this flag;
bool IsHiddenPicture – used for hide picture on client but send item, because now IsHidden static items not send to client;
bool IsTrigger – set this flag for dynamic or static items if you want to catch them in EventItemWalk or EventStaticItemWalk;
bool IsHiddenInStatic – hide static items in resulted functions like GetStaticItem/GetStaticItems for performance boost.

Properties
TriggerNum Weapon.Anim1 Grid.ToMap Grid.ToMapEntire Grid.ToMapDir
are excluded from engine.

Removed following methods
void Critter::TransitToMap(Map map, hash entire)
Item Map::GetDoor(uint16 hexX, uint16 hexY)
uint Map::CountEntire(hash entire) const
array<hash> Map::GetAllEntires() const
bool Map::GetEntireCoords(hash entire, uint skip, uint16& hexX, uint16& hexY) const
bool Map::GetEntireCoords(hash entire, uint skip, uint16& hexX, uint16& hexY, uint8& dir) const
uint Map::GetEntireCoords(hash entire, array<uint16> hexX, array<uint16> hexY, array<uint8> dirs) const
bool Map::GetNearEntireCoords(hash& entire, uint16& hexX, uint16& hexY) const
bool Map::GetNearEntireCoords(hash& entire, uint16& hexX, uint16& hexY, uint8& dir) const

Renamed
Map::GetScenery -> Map::GetStaticItem
Map::GetSceneries -> Map::GetStaticItems

818 Diff Diff cvet picture cvet Sat 06 Oct, 2018 13:59:21 +0000

Item types moved to components.

Added new methods with predicate for retrieving items
funcdef bool ItemPredicate(Item)
Item Critter::GetItem(ItemPredicate predicate)
const Item Critter::GetItem(ItemPredicate predicate) const
array<Item> Critter::GetItems(ItemPredicate predicate)
array<const Item> Critter::GetItems(ItemPredicate predicate) const
array<Item> Map::GetItems(ItemPredicate predicate)
array<const Item> Map::GetItems(ItemPredicate predicate) const
array<Item> Map::GetItems(uint16 hexX, uint16 hexY, ItemPredicate predicate)
array<const Item> Map::GetItems(uint16 hexX, uint16 hexY, ItemPredicate predicate) const
array<Item> Map::GetItems(uint16 hexX, uint16 hexY, uint radius, ItemPredicate predicate)
array<const Item> Map::GetItems(uint16 hexX, uint16 hexY, uint radius, ItemPredicate predicate) const
Example: cr.GetItem(function(i){return i.Ammo != null;});

Deleted methods
Critter::GetItemsByType
Map::GetItemsByType

817 Diff Diff cvet picture cvet Wed 03 Oct, 2018 14:42:28 +0000

Improved history data base which collected all changes in storage data base.
History not affected on properties marked as NoHistory.

816 Diff Diff cvet picture cvet Tue 02 Oct, 2018 09:07:24 +0000

Added handling of SetPropertyGetCallback, AddPropertySetCallback to locations, maps and global vars.
Fixed reflection::getCallstack.
Fixed GetMapFileNames map collection.

815 cvet picture cvet Sat 29 Sep, 2018 11:13:53 +0000

Added possibility to set animation running callbacks
funcdef void AnimationCallbackFunc(Critter cr)
void Critter::AddAnimationCallback(uint anim1, uint anim2, float normalizedTime, AnimationCallbackFunc animationCallback) const
If anim1/anim2 equal to zero then it’s applied to all sequence.

Added method to determine bone position in offset of current hex position
bool Critter::GetBonePosition(hash boneName, int& boneX, int& boneY) const

Client function to determine tile name (hash)
hash GetTileName(uint16 hexX, uint16 hexY, bool roof, int layer)

Redesigned interaction with DrawMapSprite*.
Added new class MapSprite for pass to new function
void DrawMapSprite(MapSprite& mapSprite)
Older DrawMapSpriteProto and DrawMapSpriteExt are removed.
MapSprite class members:
uint SprId
uint16 HexX
uint16 HexY
hash ProtoId
int FrameIndex
int OffsX
int OffsY
bool IsFlat
bool NoLight
int DrawOrder
int DrawOrderHyOffset
int Corner
bool DisableEgg
uint Color
uint ContourColor
bool IsTweakOffs
int16 TweakOffsX
int16 TweakOffsY
bool IsTweakAlpha
uint8 TweakAlpha

Example of using this stuff for character footsteps
https://www.youtube.com/watch?v=gHdzbBOI_Sw