edo9300
6ec6a6cc06
Improved callback calls from duel class, replace sprintf interpreter function with "format", usign a buffer internal to the interpreter class
...
handle_message and read_script are now wrappers on top of the callbacks, will pass the payload and other needed parameters accordingly
2021-01-07 13:39:12 +01:00
edo9300
639a61fac7
Update lua functions related to strings
...
Remove global duel::strbuffer, this was a leftover from the old message handling, directly pass the string from lua to the callback function, and use local buffers when formatting is needed.
2020-11-06 22:40:01 +01:00
edo9300
d98ab684d7
Always use lua_get<duel*>() in library functions that have to access it
2020-10-30 17:05:28 +01:00
edo9300
64f86fa6ae
Add getters for bool/ints with default parameters, treat failed calls with no default params as errors
2020-07-23 23:50:09 +02:00
edo9300
f137ca6407
Function signatures formatting
2020-07-21 19:15:19 +02:00
edo9300
24141e6fed
Libdebug
2020-07-21 15:58:11 +02:00
edo9300
c1c500e060
remove card2value, group2value, effect2value, function2value
...
Replaced them with generic "pushobject"
2020-07-20 22:05:04 +02:00
edo9300
681e401c9e
Use new lua getters in effect, debug and group classes
2020-07-20 19:44:59 +02:00
edo9300
8a073daa1d
Add new function for lua parameters getting
2020-07-12 14:57:26 +02:00
edo9300
69398817ad
Remove unused duel flags
2020-05-29 15:42:12 +02:00
edo9300
1aaa78ec81
Always force non pendulum monsters in the extra deck to facedown defense
2020-05-12 20:26:07 +02:00
edo9300
4f3d4cf423
Revert "Revert "minor refactor of xyz overlay""
...
This reverts commit 8ba4ec24ee .
2020-04-12 13:11:54 +02:00
edo9300
8ba4ec24ee
Revert "minor refactor of xyz overlay"
...
This reverts commit b8dbc0e8bf .
2020-04-12 12:54:03 +02:00
DailyShana
b8dbc0e8bf
minor refactor of xyz overlay
2020-04-12 12:09:27 +02:00
edo9300
735526d96e
Debug.AddCard, properly add card as overlayed material even for cards in spell/trap zone, updated MSG_RELOAD_FIELD accordingly
2020-01-16 22:46:17 +01:00
edo9300
27a99eb8e8
Added mr5 parameter support in on reload_field_begin
2020-01-09 00:03:55 +01:00
DailyShana
50f494de8a
Debug.AddCard: set position of card in extra deck
...
if the position is not set
2020-01-08 22:34:55 +01:00
edo9300
117386528d
Added Debug.PrintStacktrace and print backtrace on internal errors
2020-01-06 19:01:59 +01:00
edo9300
a34e847c1f
Properly use lua_tointeger
2019-11-22 00:08:02 +01:00
kevinlul
4b45bb42c3
Use OCG_LogTypes enum, refix sprintf warnings
2019-09-29 13:41:45 -04:00
edo9300
4791166edb
Send correct log type to callback function
2019-09-29 19:29:17 +02:00
Naim
b4fb98fc1d
Indentation fixes and constant renaming ( #77 )
...
SPEED_DUEL to DUEL_SPEED
DUEL_RELAY_MODE to DUEL_RELAY
DUEL_TAG_MODE to DUEL_TAG
MASTER_RULE_X, where X is the master rule number, to DUEL_MODE_MRX
2019-09-22 12:12:29 -04:00
edo9300
b6c385c1dd
Internally rename api payloads
2019-09-13 23:58:32 +02:00
edo9300
06e50574c5
Remove inclusions of ocgapi.h
2019-09-09 09:51:29 -04:00
edo9300
99c32938f6
Finished cleanup of older api functions
2019-09-09 09:51:29 -04:00
edo9300
63b6a9fdbd
Implement OCG_DuelQuery, OCG_DuelQueryLocation, OCG_DuelQueryField, updated MSG_RELOAD_FIELD
2019-09-09 09:51:29 -04:00
edo9300
34282c7155
Added small class "duel_message" to handle the various messages sent from the core and not making it work directly on the buffer
2019-07-16 00:57:53 +02:00
AndreOliveiraMendes
3a2641045a
fix for xyz material possesion ( #45 )
...
* overlay and detach
* puzzle
* reset on remove brainwashing
* take, swap and reset
2019-06-20 20:34:19 +02:00
edo9300
50da92e90b
Cleanup
...
Added is_flag funciton to check for duel flags, instead of manually doing the bitwise operation. added get_pzone_index, removing teh ugly checks like "!(pduel->game_field->core.duel_options & DUEL_SEPARATE_PZONE) ? (pduel->game_field->core.duel_options & SPEED_DUEL) ? (sequence == 0) ? 1 : 3 : sequence * 4 : (6 + sequence)". More function cleanup in field::filter_matching_card
2019-05-02 01:05:06 +02:00
edo9300
a5f52f8b4c
Updated internal api buffer handling, added versioning
...
Replaced the buffer internally used by teh api with a vector of chars, updated the api functions for queries and duel buffer to have the possibility to get the length of the buffer before actually reading it, added api versioning to keep track of compatibilities if used as dynamic object
2019-03-16 20:08:08 +01:00
edo9300
33a50af048
Merge remote-tracking branch 'Fluorohydride/master'
2018-11-10 13:37:59 +01:00
edo9300
5623b287a3
Merge pull request #33 from AndreOliveiraMendes/patch-2
...
some min edits in puzzle add card
2018-10-06 12:51:23 +02:00
DailyShana
68e11e9a3c
use snprintf
...
strncpy do not add terminal ‘\0' if the src is too long
2018-10-05 18:28:58 +08:00
edo9300
a891c23ecb
Merge remote-tracking branch 'refs/remotes/Fluorohydride/master'
...
# Conflicts:
# effect.cpp
# field.cpp
# libduel.cpp
# libeffect.cpp
# operations.cpp
# premake4.lua
# processor.cpp
# scriptlib.h
2018-09-26 19:43:17 +02:00
DailyShana
a95bef3acc
format
2018-09-17 19:44:58 +08:00
edo9300
f3f559e02a
Merge remote-tracking branch 'refs/remotes/Fluorohydride/master'
...
# Conflicts:
# card.cpp
# effect.cpp
# effect.h
# field.cpp
# field.h
# interpreter.cpp
# libduel.cpp
# libeffect.cpp
# ocgapi.cpp
# operations.cpp
# playerop.cpp
# processor.cpp
2018-09-03 19:15:04 +02:00
DailyShana
96b3763c58
modern c++
2018-09-03 19:44:34 +08:00
AndreOliveiraMendes
ba68780fd0
some min edits in puzzle add card
...
:v
2018-08-24 17:01:30 -03:00
edo9300
848b0e272c
Merge remote-tracking branch 'refs/remotes/Fluorohydride/master'
...
# Conflicts:
# card.cpp
# effect.cpp
# field.cpp
# field.h
# libcard.cpp
# libduel.cpp
# libeffect.cpp
# libgroup.cpp
# operations.cpp
# playerop.cpp
# premake4.lua
2018-04-21 17:37:34 +02:00
VanillaSalt
3432bbf32f
use emplace
2018-03-07 09:59:57 +09:00
edo9300
1dc8819e85
Added relay duel support
2018-02-01 22:50:41 +01:00
edo9300
1f73a4cf42
Added DUEL_SEPARATE_PZONE, changed description from int32 to int64
2017-11-12 19:33:58 +01:00
edo9300
8038db3527
Fix
2017-10-30 23:15:36 +01:00
edo9300
d86fc61809
Update
2017-10-23 22:34:34 +02:00
edo9300
deaccfbee2
Added rules flags
2017-10-23 20:26:59 +02:00
edo9300
8c31f35099
Fix for lua 5.3
2017-10-01 15:00:16 +02:00
edo9300
3a1299fd2e
Added speed duel mode
2017-08-13 18:07:11 +02:00
edo9300
f2fc9399f4
fix
2017-08-10 23:22:09 +02:00
edo9300
4bb0aa96c4
Merge remote-tracking branch 'refs/remotes/Fluorohydride/master'
2017-08-10 23:11:01 +02:00
VanillaSalt
10c7691aba
replace operation_param with sendto_param
2017-08-06 17:14:03 +09:00