Jump to content

Casino Mod by BadZombie


BadZombie

Recommended Posts

You've collected the tokens, now come and spend them!


Duke's Casino is a heavily guarded fortress where the adventurous and megarich come to unwind.

The casino is surrounded by a high metal wall and guarded 24/7 by the toughest SOBs in Navezgane, so you can feel warm and safe inside the casino walls.

Inside you will find working slot machines of different wealth levels, as well as three different roulette tables.

There are various NPCs inside to make you feel at home too.

This casino has everything you might find in a typical casino *hint hint*

The NPCs also sell various items.

Although the NPCs act as traders, the POI has no trader protection and is open 24/7.

Every locked door in the POI has a trigger which opens it - you just have to find out where that trigger is...

 

Please report any bugs/problems you find.

 

DISCLAIMER:
This mod was a year in the making.
I am NOT a seasoned modder - a lot of this was a learning experience for me!

The user experience of this mod takes place predominantly via XUi - which is an area that I'm not too familiar with... if you are using a mod which alters the XUi this mod might be incompatible.

Aligning the various interfaces was a painstaking process that took several weeks of incremental refinement!
With this in mind, any modders out there that look at the code and see redundant parts please feel free to reply here to help me improve it.

With this proviso I may be slow to patch any major bugs.

 

DOWNLOAD HERE: CASINO MOD V1.4

Game version: a21.2 (b30) - Install client and server side.

 

Mod version: 1.4 - Released: 01/02/24

- Fixed Gambling Book 3 icon visual (was showing as unread after reading)

- Badchap slots overhaul:
    - All models changed, one generic model now used for all
    - Bets changed, each machine now has the same betting amounts
    - New interfaces for each machine
    - Mechanism of winning changed, players will now receive a briefcase of winnings, and nothing if they lose
    - New "Big Win" buff added, which is triggered when a player opens their briefcase (can be heard by all in the area)
    - Odds and jackpots have been altered

- Resources:
    - Obsolete models removed (old slot models)
    - Xmas and Halloween models removed
    - New jackpot sound added (applied to briefcase and mystery loot box opening)
- POI:
    - Xmas and Halloween blocks completely removed
    - Slight changes to VIP area
    - Old Badchap slots replaced with new model blocks
    - Second POI added into the PREFABS folder, designed by Badchap
    - Name of original POI changed to reflect addition of new variant
- casinoCoins stack reverted from 50k to 20k (vanilla stack amount)
- Blue Chips renamed to Platinum Tokens
- Platinum Tokens craftable with 20k casinoCoins (instead of 50k), and now stack at 20k themselves.
- Platinum Tokens are no longer sellable to traders (possible infinite money exploit when players got rich enough)
- Platinum Tokens are now the only currency used on the VIP slot machines
- Roulette tables changed from 20, 2000 and 20k bets to 10, 25 and 100
- 1 in 6 vehicle roll machine output changed - players will now receive a token which they can redeem at the token exchange (changed for realism)
- New block added: old token exchange machine
- NPC Mongo now sells counterfeit or "old" mystery loot tokens
- General slot odds changed to 1 in 15
- General slot win amount changed to fixed amount, which varies depending on stake
- VIP slots odds changed:
    - 20k bet: 1 in 10 chance of winning
    - 0.1% chance of winning jackpot (1 million coins)
    - 40k bet: 1 in 8 chance of winning
    - 0.125% chance of winning jackpot
    - 80k bet: 1 in 6 chance of winning
    - 0.16% chance of winning jackpot
- General code cleanup
- Rewritten the HOW TO INSTALL text file for both rwg and existing map installation
 

 

Mod version: 1.3 - Released: 26/11/23

- Fixed a couple of blocks in the POI (block missing outside owners room, block on gaming floor under slot stool not painted)
- Changed the rentable vending machines in the POI to the fuctioning blocks (used incorrect blocks in initial build)
- Overhaul of the Mystery Loot Box items...
    - There are now 3 tier levels:
    - 1 Star: 1 random weapon from quality 1-6
    - 2 Star: 1 random weapon from quality 3-6
    - 3 Star: 1 random weapon from quality 5-6
- Added new item "Mystery Loot Token", used to redeem the loot boxes. Item can be found throughout loot in the world (mailboxes), meaning mystery loot boxes can no longer be purchased, only redeemed by finding these tokens.
- Removed XP gain from all machines EXCEPT the elite machines in VIP area... feedback was that players were levelling too quickly just by gambling.
- Slight alterations to recipes.xml (nerfed the Roll a 6 machine)
- Slight graphical change to Elite Slot interface
- New block + interface created especially for Mystery loot boxes to be redeemed
- POI interior altered slightly

- NEW slot machine added for Christmas which uses snowballs as currency

 

Mod version: 1.2.1 - Released: 07/11/23

- Converting Blue Chips back to Duke's was bugged. Instead of re-converting players can now sell the blue chips with a mark-up.
- Edited a few minor details in items.xml, recipes.xml
- Fixed an issue affecting players using wide resolution whereby the queue was visible. Affecting files: XUi/controls.xml, XUi/windows.xml

 

Mod version: 1.2 - Released: 05/11/23

- Patch fix for issue with some NPCs creating a spawnpoint

 

Mod version: 1.1 - Released: 31/10/23

- Books added: Gambling Vol 1-3.

- Added new model: Halloween slot machine.

- Altered existing Badchap slots background images.

- Cleaned up code, removed redundant/experimental sections of code.

 

Mod version: 1 - Released: 28/10/23

 

5.png

6.png

7.png

8.png

9.png

 

11.png

12.png

1.png

2.png

3.png

4.png

10.png

Edited by BadZombie
Updated for v1.4 (see edit history)
Link to comment
Share on other sites

Hey guys, a quick update!

 

I developed this mod in single-player only and had never tested it on a dedicated server until today. Within about 5 minutes I noticed a bug with the NPCs - some of them were in a spawnpoint loop, which made the POI unplayable because of framerate drop.

I figured out the problem (within utilityai.xml) and patched it. The latest version (1.2) won't have this problem.

 

For players with an existing world using older versions of the mod the only workaround I can think of would be a chunk reset - but that encompasses a 512x512 area so use with caution.

 

Please continue to post bug reports as it helps me out massively to develop the mod and make improvements!

 

Thanks for the support it has had so far and the comments 

Link to comment
Share on other sites

For Fallout New Vegas fans, this looks like a *must see*!  Your casino would totally fit in with a New Vegas themed game.

I run a Fallout themed, highly modified, server for a friend that is built around The Wasteland overhaul by bdubyah, and my own custom tweaks.  You can see videos of some of the stuff I've done with it on my friend's YT - TomGirlGamer.  Look for the "Fallout in 7 Days to Die" videos.   

I've been working on making a Washington Monument for a new Capitol Wasteland map.  And if we do a New Vegas map, I may ask to use your casino for the game.
 

WashMon022.jpg

WashMon023.jpg

Link to comment
Share on other sites

  • 2 weeks later...

The tags for the prefab are: oldwest, wilderness and commercial.

 

You can see if it has been generated by searching for the POI 'Casino_Plaza' in your newly created world.

 

Alternatively, I play on the PREGEN10K map with the POI placed in a specific location in the desert.

 

You can download that modified map under the miscellaneous files on the Nexus mod page.

 

Lastly, you can add the POI to any existing map using the World Editor.

Link to comment
Share on other sites

4 hours ago, BadZombie said:

The tags for the prefab are: oldwest, wilderness and commercial.

 

You can see if it has been generated by searching for the POI 'Casino_Plaza' in your newly created world.

 

Alternatively, I play on the PREGEN10K map with the POI placed in a specific location in the desert.

 

You can download that modified map under the miscellaneous files on the Nexus mod page.

 

Lastly, you can add the POI to any existing map using the World Editor.

Your recent update was flagged as suspicious. You may have to re-upload it on Nexus.

 

Latest version of the mod with an update for Christmas slots.

This file has been automatically quarantined and may be unsafe. How can I fix this?

Link to comment
Share on other sites

50 minutes ago, Brugas said:

Your recent update was flagged as suspicious. You may have to re-upload it on Nexus.

 

Latest version of the mod with an update for Christmas slots.

This file has been automatically quarantined and may be unsafe. How can I fix this?

 

Hey, thanks for posting. I uploaded it earlier today then went out, had no idea it had been flagged.

 

After looking into the issue I discovered I had forgot to remove another .rar file from within the prefabs folder.

I've removed it now and re-upped.

Link to comment
Share on other sites

5 hours ago, BadZombie said:

The tags for the prefab are: oldwest, wilderness and commercial.

 

You can see if it has been generated by searching for the POI 'Casino_Plaza' in your newly created world.

 

Alternatively, I play on the PREGEN10K map with the POI placed in a specific location in the desert.

 

You can download that modified map under the miscellaneous files on the Nexus mod page.

 

Lastly, you can add the POI to any existing map using the World Editor.

thx

Edited by pleasehelp (see edit history)
Link to comment
Share on other sites

  • 2 months later...
On 11/5/2023 at 8:07 PM, BadZombie said:

Hey guys, a quick update!

 

I developed this mod in single-player only and had never tested it on a dedicated server until today. Within about 5 minutes I noticed a bug with the NPCs - some of them were in a spawnpoint loop, which made the POI unplayable because of framerate drop.

I figured out the problem (within utilityai.xml) and patched it. The latest version (1.2) won't have this problem.

 

For players with an existing world using older versions of the mod the only workaround I can think of would be a chunk reset - but that encompasses a 512x512 area so use with caution.

 

Please continue to post bug reports as it helps me out massively to develop the mod and make improvements!

 

Thanks for the support it has had so far and the comments 

Hello, @BadZombie I've been messing about with your poi and managed to get it where I wanted it on Navezgane https://imgur.com/uTAFAf4 I've added a POI protection area to it too. I'm having an issue where the DMS is throwing warnings for the NPC's in your mod it still works though and the warnings stop if I turn dynamic music off, just thought I should let you know here is the warning it repeats about 5 times a second. '2024-01-30T01:54:38 3330.432 WRN traderandrew is not a known trader name to DMS' looking forwords to a fix, ty for the great mod

Link to comment
Share on other sites

5 hours ago, Mr Negative said:

Hello, @BadZombie I've been messing about with your poi and managed to get it where I wanted it on Navezgane https://imgur.com/uTAFAf4 I've added a POI protection area to it too. I'm having an issue where the DMS is throwing warnings for the NPC's in your mod it still works though and the warnings stop if I turn dynamic music off, just thought I should let you know here is the warning it repeats about 5 times a second. '2024-01-30T01:54:38 3330.432 WRN traderandrew is not a known trader name to DMS' looking forwords to a fix, ty for the great mod

 

Hi, thanks for the feedback.

 

in configs/utilityai.xml find the following:

 

<!-- line 3 -->
<insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie_Dumb']" >
  
<!-- line 14 -->
</insertBefore>

 

And change to:

 

<!-- line 3 -->
<append xpath="/utility_ai/ai_packages">
  
<!-- line 14 -->
</append>

 

Basically replacing an <insertbefore> tag with an <append> tag.

 

Let me know if that works.

 

Thanks for trying out the mod!

version 1.4 is just around the corner, we've been making some changes for a month or so and are just in testing phase atm

Link to comment
Share on other sites

7 hours ago, BadZombie said:

 

Hi, thanks for the feedback.

 

in configs/utilityai.xml find the following:

 

<!-- line 3 -->
<insertBefore xpath="/utility_ai/ai_packages/ai_package[@name='Zombie_Dumb']" >
  
<!-- line 14 -->
</insertBefore>

 

And change to:

 

<!-- line 3 -->
<append xpath="/utility_ai/ai_packages">
  
<!-- line 14 -->
</append>

 

Basically replacing an <insertbefore> tag with an <append> tag.

 

Let me know if that works.

 

Thanks for trying out the mod!

version 1.4 is just around the corner, we've been making some changes for a month or so and are just in testing phase atm

Sadly no change, I tried it on a fresh map and only used CasinoMod_by_BadZombie_v1.3 I'll just keep dynamic music off for now as it works well like that. ty for the reply and looking forword to 1.4

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...