Jump to content

[Mods] Gambling, Dock Building, Pirate Warlord, Spawn Changer & more


Theoman02

Recommended Posts

  • Replies 75
  • Created
  • Last Reply

Top Posters In This Topic

Casino on the server does not seem to remove my cash.

 

I also found only tested it 20 times but only got white modules the entire time the turrets were mostly white but got one blue / yellow.

 

Near the center (before you can enter was costing over quarter of a mil and I think that is fine.

Link to comment
Share on other sites

Casino on the server does not seem to remove my cash.

 

I also found only tested it 20 times but only got white modules the entire time the turrets were mostly white but got one blue / yellow.

 

Near the center (before you can enter was costing over quarter of a mil and I think that is fine.

 

Thanks for spotting that! Uploaded a fixed version in the OP. Also added a variable gambleMultiplier which dictates how much per tech level the price will be (techLvl * gambleMultiplier. Now it's 8k per tech level).

 

As for the boss bar, I'll get to it soon, I just need to sort out some other things first.

Link to comment
Share on other sites

Spawn changer

 

To do so, you need to go to a sector with a shipyard, where you need to have 60k+ reputation, interact with it and choose the "Set Homeworld" option...

 

First, I wanted to point out that Spawn changer is incompatible with Tarantel's "Better SHIPYARD":

[MOD] Better SHIPYARD! 1.0

 

Both mods replace the vanilla shipyard.lua, so the only way both mods could work is if someone manually merged the diffs of both (as compared to the vanilla file).

 

Secondly, when I used WinMerge to compare your shipyard.lua with the current vanilla file, I discovered that yours needs a minor update to keep up with the latest patch. Specifically, line 165 in your file reads as:

nameTextBox.allowedCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-üöäÜÖÄ#' "

But the equivalent line in the latest (updated) vanilla shipyard.lua reads as:

nameTextBox:forbidInvalidFilenameChars()

Link to comment
Share on other sites

Dock building

... [snip]

This is still WIP, as I have to figure out to make the player owning them actually matter. For now, they will just act as any other dock, but owned by you instead.

 

How about attaching a custom script/code to each of these stations so they will generate a small income for the player who owns them at a regular interval? (That is, a script to put money straight into your account, giving the illusion that it's making a profit for you.) It only makes sense that an equipment dock, repair dock, or turret factory would turn a profit for you. The research station is not as obvious. But I'd like to imagine that the owner could offer research services to a number of potential clients.

 

As for the amount of profit, I think there should be a random element - perhaps +/- 50% of a base value. And the base profit should scale higher based on the distance of the sector from the core. The closer to the core, the more expensive the turrets and equipment tend to be that customers typically buy. Also, the higher the demand for expensive repairs of expensive ships.

Link to comment
Share on other sites

Dock building

... [snip]

This is still WIP, as I have to figure out to make the player owning them actually matter. For now, they will just act as any other dock, but owned by you instead.

 

How about attaching a custom script/code to each of these stations so they will generate a small income for the player who owns them at a regular interval? It only makes sense that an equipment dock, repair dock, or turret factory would turn a profit for you. The research station is not as obvious. But I'd like to imagine that the owner could offer research services to a number of potential clients.

 

As for the amount of profit, I think there should be a random element - perhaps +/- 50% of a base value. And the base profit should scale higher based on the distance of the sector from the core. The closer to the core, the more expensive the turrets and equipment tend to be that customers typically buy. Also, the higher the demand for expensive repairs of expensive ships.

 

atm i working on a TAX script for custom stations like shipyard and the owner becomes some things cheaper on the stations

Link to comment
Share on other sites

Does the Pirate Warlord scale or does it have fixed stats? I'm planning on having it on a private server with friends but I dont want them to abuse the exceptional drop (ex fighting the Pirate Warlord in an easy area). It would be nice if its fixed and is tweak-able

Link to comment
Share on other sites

line 34 in gamblingmanager.lua seems to be missing brackets:

 

function initialize()

 

    print("I am initialized.")

    if (onServer) then

        gambleCost = 75000

        maxGamble = 6

        gambleCooldown = 10 * 60 --10 minutes cooldown

        gambleAmount = maxGamble

    end

    if (onClient()) then

        --requestData()

    end

 

 

Link to comment
Share on other sites

In addition to Laserzwei's post:

    if (onServer) then

This was causing some errors with initialising calls, which dissapeared after applying this code:

    if (onServer()) then

After making this change somehow the gambling UI got a little messed up, as you can see in the screenshot below:

5334B59DDCDE2C941E5AEA53E8024BD7E57669A5

 

I also noticed that the turrets and upgrades don't really scale with the price it costs, while being in Xanion regions it charges more than 100k while only rewarding uncommon items, some of them even being iron.

Link to comment
Share on other sites

What a cool mod. I think I am going to set up my own sector with a bunch of stations and ships near the core. And gambling of course! I added a few other stations to the Dock Building mod, seems easy to do. Military outpost and shipyard for example. Now I just need to be able to add claimable asteroids, at least until the OOS stuff is put in the game.

Link to comment
Share on other sites

We are using this mod in our new Server but there seems to be a Problem with the respawn.

If you die in the sector with the shipyard, you spawn there like you should.

But if you die in another sector / the shipyard sector isn't loaded because nobodies there, then you respawn at the galaxy spawn Point.

I now have to fly across half the galaxy - again - and had really hoped to Change that with the new respawn.

Link to comment
Share on other sites

  • 2 weeks later...

I have question..

 

I am new. And i down load this. Question is how you spawn a stations and stuff. Is there a admin code. not understanding . what i need to do. I think have it installed right on both side client and server. but how you spawn . Them can you post a step for this please.

Link to comment
Share on other sites

I have question..

 

I am new. And i down load this. Question is how you spawn a stations and stuff. Is there a admin code. not understanding . what i need to do. I think have it installed right on both side client and server. but how you spawn . Them can you post a step for this please.

 

You have to build the stations yourself, the mod only allows you to also build the stations that can't be build in vanilla.

If you are wondering how to create a station, you have to go to a shipyard and create a ship (or block) there with the option "Station Founder" selected.

Link to comment
Share on other sites

Just had a friend build a turret factory on my dedicated private server, but I can't seem to use it, says "our records say that we're not allowed to do business with you.", basically like I don't have the rep to use his turret factory. Because he owns it, I can't see any way of actually getting more rep with him to be able to use his factory. Any ways around this?

Link to comment
Share on other sites

For sume reason the Casino  Mod .rar is hated by Windows 10 my malware protection keeps flagging it as malware.

 

The other .rars are fine just that one

 

Not gonna risk it just figured id let you know.

 

You're probably risking more using windows 10 than this guys mod just saying

Link to comment
Share on other sites

For sume reason the Casino  Mod .rar is hated by Windows 10 my malware protection keeps flagging it as malware.

 

The other .rars are fine just that one

 

Not gonna risk it just figured id let you know.

 

You're probably risking more using windows 10 than this guys mod just saying

 

Indeed.

Here is the scan:

https://www.virustotal.com/en/file/8640e58616404f630c4c652f327eee16209a550eb7932e2f9906fc1ea3c8ed48/analysis/1488399929/

 

Nothing was detected. If Windows Defender blocked the file, you can allow it in Windows Defender's history.

I am guessing that the file was blocked due to the link that was used, but who knows, since Windows Defender doesn't really say why it does anything.

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...