Commit Graph

237 Commits

Author SHA1 Message Date
Deukhoofd 109042ff52
Adds support for including angelscript files using #include pragma, as long as they're within a set source directory.
continuous-integration/drone/push Build is failing Details
2021-05-13 12:47:02 +02:00
Deukhoofd 5c6bbf485f
Fix Angelscript battle returning normal Party instead of BattleParty.
continuous-integration/drone/push Build is passing Details
2021-05-08 12:28:50 +02:00
Deukhoofd de82bbecf4
Adds angelscript wrappers for getting, setting, and clearing status.
continuous-integration/drone/push Build is passing Details
2021-05-08 12:21:25 +02:00
Deukhoofd 6def68cf72
Adds Angelscript wrappers for Party.
continuous-integration/drone/push Build is passing Details
2021-05-08 12:12:36 +02:00
Deukhoofd a8f3e30049
Work on making Angelscript work threaded
continuous-integration/drone/push Build is passing Details
2021-04-17 13:50:43 +02:00
Deukhoofd e8b86a20d1
Add support for creating pokemon with passed Random parameter.
continuous-integration/drone/push Build is failing Details
2021-04-11 17:50:47 +02:00
Deukhoofd a88719e2b3
Supports cloning battles for AI purposes.
continuous-integration/drone/push Build is passing Details
2021-04-11 16:27:21 +02:00
Deukhoofd 14016837d9
Adds ModifyNumberOfHits Angelscript script hook.
continuous-integration/drone/push Build is passing Details
2021-03-28 19:58:08 +02:00
Deukhoofd c89c572aa2
Adds new Angelscript script hooks.
continuous-integration/drone/push Build is passing Details
2021-03-28 18:53:08 +02:00
Deukhoofd 4e215895b7
Adds proper AddVolatile wrapper for battle.
continuous-integration/drone/push Build is passing Details
2021-03-28 17:55:45 +02:00
Deukhoofd 76053af77f
Use borrowedPtr helpers in AngelScript turn choices.
continuous-integration/drone/push Build is passing Details
2021-03-28 17:35:00 +02:00
Deukhoofd 514de9a2ba
Adds helper function for printing constString.
continuous-integration/drone/push Build is passing Details
2021-03-28 17:15:06 +02:00
Deukhoofd f8c3e92769
Fixes type causing PreventOpponentRunAway to not work.
continuous-integration/drone/push Build is passing Details
2021-03-28 16:54:41 +02:00
Deukhoofd 515446bf20
Fixes GetPokemonIndex on BattleSide, adds unit test for it.
continuous-integration/drone/push Build is passing Details
2021-03-28 16:16:47 +02:00
Deukhoofd acf7d1cc6e
Fixes unused variable in scriptdictionary.cpp
continuous-integration/drone/push Build is failing Details
2021-03-27 22:57:05 +01:00
Deukhoofd 78268c51c0
Style fixes.
continuous-integration/drone/push Build is failing Details
2021-03-27 22:40:16 +01:00
Deukhoofd e748f6e96f
Updates Angelscript addons, adds angelscript dictionary addon.
continuous-integration/drone/push Build is failing Details
2021-03-27 22:39:25 +01:00
Deukhoofd e361507ec9
Adds support for modifying volatile scripts after adding them.
continuous-integration/drone/push Build is failing Details
2021-03-27 22:19:18 +01:00
Deukhoofd 5cfa174396
Adds new run prevention script hooks.
continuous-integration/drone/push Build is passing Details
2021-03-27 15:34:04 +01:00
Deukhoofd 793daeae80
Adds missing scripts.
continuous-integration/drone/push Build is passing Details
2021-03-27 13:51:06 +01:00
Deukhoofd 9b4cb06641
Style fixes.
continuous-integration/drone/push Build was killed Details
2021-03-27 13:46:34 +01:00
Deukhoofd af559f757c
Support for new move fail handling.
continuous-integration/drone/push Build is passing Details
2021-03-27 13:33:56 +01:00
Deukhoofd 301c28d7a7
Make Battle and Battleside getters on Pokemon in Angelscript not const.
continuous-integration/drone/push Build is passing Details
2021-03-27 10:06:23 +01:00
Deukhoofd bee9170603
Adds some more Angelscript functionality for the BattleSide.
continuous-integration/drone/push Build is passing Details
2021-03-26 23:05:51 +01:00
Deukhoofd 41475fcb2f
Style fixes.
continuous-integration/drone/push Build is passing Details
2021-03-26 19:14:22 +01:00
Deukhoofd 4ade8f0dca
Adds Angelscript functions for getting a battle side, and swapping positions on it.
continuous-integration/drone/push Build is failing Details
2021-03-26 15:28:24 +01:00
Deukhoofd 9f973c53df
Fixes IsUseValidForCreature Angelscript function calling wrong function.
continuous-integration/drone/push Build is passing Details
2021-03-13 14:22:56 +01:00
Deukhoofd 1540009912
Adds initialization from parameters to ItemUseScript.
continuous-integration/drone/push Build is passing Details
2021-03-07 20:03:07 +01:00
Deukhoofd 090b77ff2b
Fixes error on reading compiled scripts.
continuous-integration/drone/push Build is passing Details
2021-03-07 19:35:38 +01:00
Deukhoofd 20f90222d1
Fix memory issues.
continuous-integration/drone/push Build is passing Details
2021-03-07 18:20:42 +01:00
Deukhoofd 7216d9d71b
Support serializing item use scripts.
continuous-integration/drone/push Build is failing Details
2021-03-07 18:11:18 +01:00
Deukhoofd 27dd8a8202
Initial support for item use scripts in angelscript.
continuous-integration/drone/push Build is failing Details
2021-03-07 17:09:30 +01:00
Deukhoofd 18cebe842a
Updates to newer CreatureLib. 2021-03-07 11:12:18 +01:00
Deukhoofd f8427fa594
Many fixes for script handling.
continuous-integration/drone/push Build is passing Details
2021-01-22 14:11:03 +01:00
Deukhoofd 5e6892ac58
Clearer code for resolving to nullptr script.
continuous-integration/drone/push Build is passing Details
2021-01-16 18:14:08 +01:00
Deukhoofd 03c364765e
Fixes issue where resolving script could segfault.
continuous-integration/drone/push Build is passing Details
2020-12-28 18:04:04 +01:00
Deukhoofd bbb2691b91
Update to latest Arbutils.
continuous-integration/drone/push Build is passing Details
2020-12-13 12:32:52 +01:00
Deukhoofd 53bd6e7a94
Update to new Arbutils memory model.
continuous-integration/drone/push Build is failing Details
2020-12-12 14:25:27 +01:00
Deukhoofd b6a5e41b51
Style fixes.
continuous-integration/drone/push Build is passing Details
2020-12-11 14:08:13 +01:00
Deukhoofd fff926b617
Mark several classes as final for devirtualization performance benefits.
continuous-integration/drone/push Build is passing Details
2020-10-15 18:13:00 +02:00
Deukhoofd 2ce766f589
Adds precompiled header.
continuous-integration/drone/push Build is passing Details
2020-09-29 17:51:11 +02:00
Deukhoofd fda3c8f86d
Support not including standard angelscript libraries such as string and array.
continuous-integration/drone/push Build is passing Details
2020-09-19 15:57:20 +02:00
Deukhoofd f073e951b1
Removed invalid angelscript registering.
continuous-integration/drone/push Build is passing Details
2020-09-19 14:10:46 +02:00
Deukhoofd 6f17cb046e
Add getter for as module in angelscriptresolver.
continuous-integration/drone/push Build is passing Details
2020-09-19 13:53:56 +02:00
Deukhoofd 9e507d5c3f
Handling for Library being passed to AngelscriptResolver being nullptr, for testing purposes.
continuous-integration/drone/push Build is passing Details
2020-09-19 13:33:17 +02:00
Deukhoofd c6e2de6156
Use level_int_t for levels.
continuous-integration/drone/push Build is passing Details
2020-08-22 12:24:52 +02:00
Deukhoofd 3baabe6d79
Update tp latest CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-08-17 12:36:21 +02:00
Deukhoofd b5a1d74bdb
Update to latest CreatureLib
continuous-integration/drone/push Build is passing Details
2020-08-16 11:12:04 +02:00
Deukhoofd 77eae12326
Fixes for new CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-08-12 18:09:24 +02:00
Deukhoofd 2fa59b9ea9
Update to new CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-08-08 13:06:08 +02:00
Deukhoofd 683f3ad08b
Add Pokemon Status.
continuous-integration/drone/push Build is passing Details
2020-08-08 12:01:05 +02:00
Deukhoofd 6ffcd4dcbc
Fixed Angelscript ExecutingAttack::GetHitData function.
continuous-integration/drone/push Build is passing Details
2020-08-04 13:08:43 +02:00
Deukhoofd 723eb953a1
Fixed gcc still erroring on warning, added newline after macro file.
continuous-integration/drone/push Build is failing Details
2020-07-18 14:08:08 +02:00
Deukhoofd 3235a99ff6
Fixed issue on build with gcc.
continuous-integration/drone/push Build is failing Details
2020-07-18 13:19:35 +02:00
Deukhoofd dc3630b171
Cleanup cmake file.
continuous-integration/drone/push Build is failing Details
2020-07-18 12:42:54 +02:00
Deukhoofd 7c65bd084a
Fixes issue with constString in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-07-04 19:17:45 +02:00
Deukhoofd 45f80444b9
Fixed issue where using operator->() function directly in Angelscript threw an exception if the pointer was null.
continuous-integration/drone/push Build is passing Details
2020-07-04 18:56:49 +02:00
Deukhoofd 665c47aa91
Add angelscript implicit conversion from string to constString.
continuous-integration/drone/push Build is passing Details
2020-07-04 16:13:26 +02:00
Deukhoofd 7f1bc252ba
Update to newer CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-07-04 15:50:30 +02:00
Deukhoofd 34fb528da4
Update CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-06-05 16:54:57 +02:00
Deukhoofd 12066e1dfe
Implements most of the Damage Modifier calculation.
continuous-integration/drone/push Build is failing Details
2020-06-05 13:49:12 +02:00
Deukhoofd ce54861966
Fix Angelscript mishandling several smart pointers.
continuous-integration/drone/push Build is passing Details
2020-06-02 21:52:34 +02:00
Deukhoofd 64a22324c7
Mark LearnedAttack in ExecutingAttack as smart pointer
continuous-integration/drone/push Build is passing Details
2020-06-02 21:29:01 +02:00
Deukhoofd 6225ed19fa
Mark user in ExecutingAttack as smart pointer 2020-06-02 21:26:57 +02:00
Deukhoofd 1d1dc877a0
Minor performance improvements.
continuous-integration/drone/push Build is passing Details
2020-05-27 18:39:46 +02:00
Deukhoofd f42ce8865d
Update CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-05-27 17:26:25 +02:00
Deukhoofd 0d111739f4
Support for experience sharing.
continuous-integration/drone/push Build is passing Details
2020-05-24 13:36:45 +02:00
Deukhoofd 6c7c460640
Support Pokemon style experience gain.
continuous-integration/drone/push Build is failing Details
2020-05-20 16:05:52 +02:00
Deukhoofd e17a8e016b
Implements support for registering types and functions in AngelScript externally.
continuous-integration/drone/push Build is passing Details
2020-05-02 11:53:12 +02:00
Deukhoofd bd77b58743
Rework of ScriptResolver to binary handling. Now also serialises the type database to the stream, simplifying it's api.
continuous-integration/drone/push Build is passing Details
2020-05-02 11:13:04 +02:00
Deukhoofd c4b866cb38
File formatting.
continuous-integration/drone/push Build is passing Details
2020-04-28 14:48:56 +02:00
Deukhoofd 718c146ebe
Battle C Interface. 2020-04-26 20:01:11 +02:00
Deukhoofd ec1685aa14
Update to latest CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-04-25 20:30:44 +02:00
Deukhoofd 42ea76cf53
Fixed spelling error in AngelScriptResolver name.
continuous-integration/drone/push Build is passing Details
2020-04-24 00:05:43 +02:00
Deukhoofd 1d5c6d696e
Improve OnInitialize performance in AngelScript by caching type of parameter array.
continuous-integration/drone/push Build is passing Details
2020-04-24 00:02:10 +02:00
Deukhoofd 2e60096d57
Implements missing Script functions.
continuous-integration/drone/push Build is passing Details
2020-04-22 15:34:24 +02:00
Deukhoofd 6abef0ddc8
Implements Change Effectiveness script hook in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-04-19 13:41:41 +02:00
Deukhoofd 95209e51a4
Implements pokemon specific damage source handling.
continuous-integration/drone/push Build is passing Details
2020-04-19 13:20:14 +02:00
Deukhoofd af737cf8b8
Make AngelScript effect attributes case insensitive.
continuous-integration/drone/push Build is passing Details
2020-04-19 12:17:58 +02:00
Deukhoofd 6955c2c69f
Ensure AngelScript allows resolving PkmnScriptCategory categories.
continuous-integration/drone/push Build is passing Details
2020-04-18 16:04:48 +02:00
Deukhoofd c6d31e09a1
Implements Weather
continuous-integration/drone/push Build is passing Details
2020-04-18 15:35:01 +02:00
Deukhoofd caa353191d
C Interface for Pokemon.
continuous-integration/drone/push Build is passing Details
2020-04-18 13:43:05 +02:00
Deukhoofd c11da2d966
Changes for EffectParameter type in AngelScript, fixes for ConstString memory leak in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-04-16 14:25:20 +02:00
Deukhoofd 499f942104
Slight tweaks to writing byte code to file.
continuous-integration/drone/push Build is passing Details
2020-04-12 10:17:15 +02:00
Deukhoofd 229850257b
Attempt at fixing memory issue on Windows build.
continuous-integration/drone/push Build is failing Details
2020-04-11 15:03:44 +02:00
Deukhoofd 09c71487be
Fixed mismatched integer types.
continuous-integration/drone/push Build is failing Details
2020-04-11 14:48:43 +02:00
Deukhoofd bf36103c11
Support for saving compiled AngelScript to either file or RAM, so we can reuse it.
continuous-integration/drone/push Build is failing Details
2020-04-11 14:42:49 +02:00
Deukhoofd 0b045db811
Removed OnStatusMove hook.
continuous-integration/drone/push Build is passing Details
2020-04-10 23:21:43 +02:00
Deukhoofd 10f7f38c2d
Implements float Effect Parameter.
continuous-integration/drone/push Build is failing Details
2020-04-10 21:18:18 +02:00
Deukhoofd d12267c695
Implements new Effect Parameters in AngelScript/
continuous-integration/drone/push Build is passing Details
2020-04-10 20:39:11 +02:00
Deukhoofd 0700f7cfbd
Fix for Pokemon.HasHeldItem in AngelScript, added tests.
continuous-integration/drone/push Build is passing Details
2020-04-10 16:03:15 +02:00
Deukhoofd d2573fe959
Fixed size_t that should be asUINT.
continuous-integration/drone/push Build is passing Details
2020-04-10 15:15:46 +02:00
Deukhoofd bbb01ae458
Fixed ints for vector counts. Should be size_t.
continuous-integration/drone/push Build is failing Details
2020-04-10 15:10:22 +02:00
Deukhoofd 149b0f08f6
Rework AngelScript effect names to be not based on script names, but on attributes instead.
continuous-integration/drone/push Build is failing Details
2020-04-10 14:57:20 +02:00
Deukhoofd aa8915b314
Angelscript support for ConstString.
continuous-integration/drone/push Build is passing Details
2020-04-07 12:04:23 +02:00
Deukhoofd 1046eceacf
Clean up AngelScript context on exception.
continuous-integration/drone/push Build is passing Details
2020-04-06 20:06:43 +02:00
Deukhoofd 48ef465c82
Update to the latest CreatureLib version. 2020-04-06 20:03:44 +02:00
Deukhoofd 29a82a5e75
Support for new version of CreatureLib.
continuous-integration/drone/push Build is failing Details
2020-02-28 19:51:50 +01:00
Deukhoofd 40a003429e
Updates CreatureLib, implements ConstStrings.
continuous-integration/drone/push Build is failing Details
2020-02-27 18:59:15 +01:00
Deukhoofd 98e17a1eb8
Move script name to type.
continuous-integration/drone/push Build is passing Details
2020-02-23 16:02:27 +01:00
Deukhoofd e27cc2270d
Update CreatureLib, added RemoveVolatile function to AngelScript. 2020-02-23 12:46:44 +01:00
Deukhoofd 6a3df344da
Fixed invalid AngelScript declaration.
continuous-integration/drone/push Build is passing Details
2020-02-22 16:14:20 +01:00
Deukhoofd ed287f93db
Update CreatureLib, added AddVolatile function to AngelScript.
continuous-integration/drone/push Build is failing Details
2020-02-22 16:10:22 +01:00
Deukhoofd 1f07ddc428
Fix build.
continuous-integration/drone/push Build is passing Details
2020-02-22 15:26:16 +01:00
Deukhoofd 904af99022
Update to newest version of CreatureLib, added ChoiceQueue in AngelScript.
continuous-integration/drone/push Build is failing Details
2020-02-22 15:22:13 +01:00
Deukhoofd b1f101d646
Update to newest version of CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-02-20 13:32:13 +01:00
Deukhoofd 19cfcc9e32
Support for specific PkmnLib functions in Scripts, added ModifyCriticalStage function. 2020-02-20 13:28:31 +01:00
Deukhoofd 83a49eee6c
Add new damage library script hooks to AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-19 10:25:27 +01:00
Deukhoofd a6e1726dc5
Include extern directory in conan.
continuous-integration/drone/push Build is passing Details
2020-02-19 09:59:46 +01:00
Deukhoofd 6fc6dbd05f
Added ScriptBuilder that gives us access to conditional compilation and metadata attributes.
continuous-integration/drone/push Build is passing Details
2020-02-19 09:07:44 +01:00
Deukhoofd 93be2ee8a1
Add Held Item functions to AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-17 17:35:14 +01:00
Deukhoofd f9f83f892d
Fixed ModifyEffectChance function having uint16 instead of float as chance.
continuous-integration/drone/push Build is passing Details
2020-02-17 10:55:42 +01:00
Deukhoofd 3446412c0d
Fix EffectChance using uint16 instead of float.
continuous-integration/drone/push Build is passing Details
2020-02-17 10:34:11 +01:00
Deukhoofd 40f3b24bed
Change battle.Random from address to handle..
continuous-integration/drone/push Build is passing Details
2020-02-16 17:57:51 +01:00
Deukhoofd 30c3c5f405
Upgrade CreatureLib, added basic Battle class, as we'll use it later on/
continuous-integration/drone/push Build is passing Details
2020-02-16 17:50:16 +01:00
Deukhoofd 62eaf24f31
Fix ChangeStatBoost using the wrong underlying function
continuous-integration/drone/push Build is passing Details
2020-02-16 17:00:52 +01:00
Deukhoofd 57c142a11a
Add Stat boost change script function in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-16 16:55:46 +01:00
Deukhoofd 98c3bdea1a
Register many new types and properties in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-16 16:43:37 +01:00
Deukhoofd 0147515ffb
Implement AngelScript support for effect chance changes.
continuous-integration/drone/push Build is passing Details
2020-02-16 15:21:58 +01:00
Deukhoofd 321afbebe4
Use namespaces to differentiate between different categories of scripts.
continuous-integration/drone/push Build is passing Details
2020-02-16 14:38:05 +01:00
Deukhoofd bb06026587
Allow creating script from direct string instead of invoking load function.
continuous-integration/drone/push Build is passing Details
2020-02-16 13:33:58 +01:00
Deukhoofd a31477d4cb
Fix HitData.Damage being float instead of uint on scripts.
continuous-integration/drone/push Build is passing Details
2020-02-16 12:37:13 +01:00
Deukhoofd 3a141e7f9d
Fix Script GetAttackDataForTarget function.
continuous-integration/drone/push Build is passing Details
2020-02-16 12:28:05 +01:00
Deukhoofd 5bbb880700
Improve script exception error message.
continuous-integration/drone/push Build is passing Details
2020-02-16 11:44:50 +01:00
Deukhoofd 45662cb29b
Update to new CreatureLib version, updated libraries in accordance.
continuous-integration/drone/push Build is passing Details
2020-02-15 19:04:06 +01:00
Deukhoofd b83cefce11
Register Heal Method in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-13 15:15:07 +01:00
Deukhoofd 6032610de6
Add script category to script creation function in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-13 13:59:07 +01:00
Deukhoofd eeedbdac03
Minor fixes.
continuous-integration/drone/push Build is passing Details
2020-02-13 11:13:27 +01:00
Deukhoofd c91b1b0906
Fix issues with AngelScript not handling statistics enum well.
continuous-integration/drone/push Build is passing Details
2020-02-12 20:36:05 +01:00
Deukhoofd 61e9c9ba1f
Update CreatureLib headers, move header files to PkmnLib subdirectory.
continuous-integration/drone/push Build is passing Details
2020-02-08 19:22:29 +01:00
Deukhoofd 905087f7b9
Support for deploying to Conan.
continuous-integration/drone/push Build is failing Details
2020-02-08 10:22:18 +01:00
Deukhoofd af2f62a278
When calling script hooks from another script, re-use existing script context.
continuous-integration/drone/push Build is passing Details
2020-02-08 09:39:36 +01:00
Deukhoofd 67d317e22b
Fixes for valgrind failure.
continuous-integration/drone/push Build is failing Details
2020-02-06 16:25:55 +01:00
Deukhoofd b425a7e8b9
Implements most script hooks 2020-02-05 17:06:15 +01:00
Deukhoofd bcc038b49d
Actual implementation of Angelscript hooks into battle library.
continuous-integration/drone/push Build is failing Details
2020-02-04 19:34:30 +01:00
Deukhoofd 419e573bbe
More tests for Pokemon class in AngelScript.
continuous-integration/drone/push Build is failing Details
2020-02-02 13:57:41 +01:00
Deukhoofd aae96333b1
Reorganized files 2020-02-02 12:23:50 +01:00