Commit Graph

76 Commits (master)

Author SHA1 Message Date
Vanessa Dannenberg 73d79911d3 Merge branch 'modconf' into 'master'
add mod.conf to 5.0+ and 5.5-dev compat

See merge request VanessaE/minislots!1
2021-03-06 18:42:49 +00:00
NathanielFreeman 0355b20285 minislots_work_files mod.conf 2021-03-02 20:50:06 +01:00
NathanielFreeman 7b3878b504 Merge branch 'modconf' of gitlab.com:NathanielFreeman/minislots into modconf 2021-03-02 20:47:38 +01:00
NathanielFreeman 67cbe17820 minislots_golden7s mod.conf 2021-03-02 20:47:23 +01:00
PsycoJaker 73ccb8ece3 mod.conf minislots_golden7s_deluxe 2021-03-02 16:47:13 -03:00
PsycoJaker 434e3a1431 mod.conf minislots_engine 2021-03-02 16:41:36 -03:00
VanessaE 1246f018d0 add minimum minetest version key for contentdb 2020-06-03 13:00:25 -04:00
Vanessa Dannenberg 7c50cafb43 add warning messages in case someone "enables" the work files dir. 2018-11-09 18:41:14 -05:00
Vanessa Dannenberg d66ec465b9 rename workfiles dir 2018-11-09 18:32:32 -05:00
Vanessa Dannenberg ea775c676c switch to LGPL 3.0 for code and CC-by-SA 4.0 for media 2018-11-08 19:36:23 -05:00
Vanessa Dannenberg 384085740d fix another crash caused by old clients not calling on_rightclick
when the node has a formspec also
2018-10-22 09:34:04 -04:00
Vanessa Dannenberg cbe6f5ba4a don't even *try* to do show-formspec stuff if the form doesn't belong
to minislots.   :-)
2018-10-01 21:55:38 -04:00
Vanessa Dannenberg 291e7c60f5 don't crash if multiplayer but old client on new enough server.
e.g. a 0.4.17[.x] server is enough to run everything normally, but a
0.4.16 or older client doesn't call on_rightclick if the node also has a
formspec set, which leaves minislots.player_last_machine_def unset/nil and
crashes the server.

If the server or singleplayer is 0.4.16 or older, a crash expected due to
newer functions that are used; this cannot be fixed (and it doesn't need to
be anyway :-P ).
2018-10-01 21:39:19 -04:00
Vanessa Dannenberg 45e8e54149 get def from node/registered items in all relevant places
not the ghostly registration data :)
2018-10-01 20:30:54 -04:00
Vanessa Dannenberg 8f1efb3999 Properly deal with Mg cent coins
reject bundles
set Golden 7's machines to accept a minimum 1.00 Mg (that ain't a coin slot :-) )
more strict item name check for minegeld

TODO: make engine cash-out to a redeemable voucher.  can wait until
there is a cash-changer machine and a slot machine that
accepts/plays/pays in cents.
2018-10-01 17:26:31 -04:00
Vanessa Dannenberg 8b7dc1c8f9 Minor improvements in cabinets' appearance
shrink the upright model a little in X and Z directions
better screenshots for UI part
thinner bezels
2018-09-17 15:00:05 -04:00
Vanessa Dannenberg 683b2c65a5 rename "standard" model to "upright"
changed the as yet unused "big" setting to follow
(I'll make a model for it later)
2018-09-17 13:32:42 -04:00
Vanessa Dannenberg 79b59a037a minor doc fix 2018-09-16 21:52:19 -04:00
Vanessa Dannenberg 9064613309 add a drop shadow option to print_string
put it to use pretty much everywhere that has white text
2018-09-16 21:31:16 -04:00
Vanessa Dannenberg b06c93e9fa make sure all disabled buttons really ARE disabled
(don't put the "button" formspec element under the image)
also misc. tweaks to make buttons behave better.
2018-09-16 21:13:03 -04:00
Vanessa Dannenberg 644e109b80 use a table to pass options to generate_display()
also fixes the admin/lock icon disappearing at times.
2018-09-16 20:49:30 -04:00
Vanessa Dannenberg 1100e5ff8e track and report total bets and total wins
and payout percentage
2018-09-16 18:48:01 -04:00
Vanessa Dannenberg 46ef01bf89 track several of a machine's stats,
put most of them on the admin screen
2018-09-16 18:17:43 -04:00
Vanessa Dannenberg b57284d81d fix order of exit checks
(prevented saving the casino name)
2018-09-16 16:51:52 -04:00
Vanessa Dannenberg 64e7073153 minor doc tweaks 2018-09-16 16:29:42 -04:00
Vanessa Dannenberg ab7c7efabb don't display "Help" button on cash-out screen :-P 2018-09-15 22:23:16 -04:00
Vanessa Dannenberg 5a114d00e3 move "Malfunction voids..." label off of main UI
(put it on pay table/pay lines help screen)
2018-09-15 22:19:05 -04:00
Vanessa Dannenberg 9b0280dbf4 Implement an admin/config screen
(at the moment, it only shows the balance and lets the owner
configure the "casino name" seen on the cashout voucher screen)

Automatically locks-out other players while the admin form is open.

Plus some misc ownership control fixes
2018-09-15 21:32:48 -04:00
Vanessa Dannenberg 7e37f00d82 add some useful info to the itemstack description 2018-09-15 14:19:53 -04:00
Vanessa Dannenberg 5b3cdf0af6 make machine remember its state on dig
(so e.g. if it has a balance, that balance is restored
on-place instead of just preventing dig)
2018-09-15 14:10:29 -04:00
Vanessa Dannenberg 82bf98b475 add two-column feature with "@wrap" key to pay table
screen, to match pay lines screen.
Make 5-reel machine use it
2018-09-15 12:25:03 -04:00
Vanessa Dannenberg bd04e3b212 implement a "show pay lines layout" screen
(accessible from the "help/pays" screen)
2018-09-15 12:02:31 -04:00
Vanessa Dannenberg 50065585c3 clean-up close handling 2018-09-15 08:25:35 -04:00
Vanessa Dannenberg e405d40f55 fix missing "Malfunction voids..." label on 5-reel :-) 2018-09-15 00:44:01 -04:00
Vanessa Dannenberg 2fb754983e implement in-game paytable display 2018-09-15 00:39:55 -04:00
Vanessa Dannenberg ea0e89d16f simplify 3-reel machine's pay table
change some pay values to follow
2018-09-14 20:44:32 -04:00
Vanessa Dannenberg f0888f8b9e fix screwy number-to-word behavior
(sometimes an extra "THOUSAND" or "MILLION",
sometimes spurious "ZERO"s.)
2018-09-14 20:09:18 -04:00
Vanessa Dannenberg 4455906f99 implement a basic print-line routine
use it to print the cashout amount in words and figures,
the "machine number" (a hash of the machine's in-world
position), and the "casino name" from meta.

renders the supplied string into a big "[composite" string,
appended to an "image[" tag.  Only builds a single line.

Uses Liberation Sans regular, condensed, and bold fonts (as images)

rework cashout ticket image for better sharpness
2018-09-14 19:47:39 -04:00
Vanessa Dannenberg 0ddcbe3047 misc fixups to cash slot screen work file 2018-09-14 11:49:55 -04:00
Vanessa Dannenberg 4b76338c7c doc tweak 2018-09-14 10:32:36 -04:00
Vanessa Dannenberg e2ff46ade4 state machine: go to idle/stopped after 60s 2018-09-14 10:28:44 -04:00
Vanessa Dannenberg c77990865c implement wild card multiplier
(demo machines don't use it)
for 'n' wilds that contribute to a win,
multiply the line win * n * wild multiplier value
2018-09-14 10:28:44 -04:00
Vanessa Dannenberg ac1476379c implement corresponding wild matching for sub lists
(drop support for `nil` in sublists,
such a thing doesn't make any sense anyway)
2018-09-14 10:28:36 -04:00
Vanessa Dannenberg e24938e196 implement wild-doesn't-match list
make both machines use it
2018-09-14 09:13:57 -04:00
Vanessa Dannenberg ba1a11ca53 tweak about 5.0.0-dev 2018-09-11 17:54:12 -04:00
Vanessa Dannenberg 1e94a1c7b1 add link to currency mod 2018-09-11 17:52:51 -04:00
Vanessa Dannenberg d6d745d987 minor doc tweak 2018-09-11 16:28:33 -04:00
Vanessa Dannenberg 3520aa93d6 add disclaimer to README 2018-09-11 16:27:25 -04:00
Vanessa Dannenberg 311ce84319 explain how the matches table works 2018-09-11 13:42:53 -04:00
Vanessa Dannenberg 9e03647711 allow reels to be positioned explicitly
(instead of always at (1,1))
2018-09-11 09:23:34 -04:00