Play
Multi-Player
Coins
Community
Settings
Help
Community   Maps   Forum   Mail   Tournaments   Ladders   Clans   Recent Games
Sign In | Sign Up
<< Back to Programming Forum   

Posts 1 - 8 of 8   
Customized Wastelands: 4/5/2017 04:06:44


Master of the Dead 
Level 63
Report
I wrote my first mod @ https://github.com/Deadman1/WarlightMods/tree/master/CustomizedWastelands

It is a slight variation of Fizzer's mod on randomized Wastelands. You can customize your wastelands. It takes two values as input, and creates half of the wastelands with the first value and the other half with the second value.

Sze's post some time back (https://www.warlight.net/Forum/86473-new-game-mode-limited-full-distribution) introduced a new concept of LFD. However, you couldn't have wastelands of multiple sizes which restricted the templates created based on this concept(i.e, I had to set wastelands of 2 to get LFD.. After this I cannot also have wastelands of size 10). This mod will help address that problem.



In this example, if my template had 20 wastelands, this mod would create 10 wastelands of size 4 and 10 wastelands of size 15.

If someone would like to help me test it in multiplayer, please join my game using the latest version of unity client.
https://www.warlight.net/MultiPlayer?GameID=13241264

Edited 4/5/2017 05:16:59
Customized Wastelands: 4/5/2017 04:07:45


Master of the Dead 
Level 63
Report
@Fizzer,
Why is there a limitation on modded games being accessible only in the unity client?
Customized Wastelands: 4/5/2017 04:21:01


knyte 
Level 58
Report
Cool mod! Looking forward to being able to use it when the Unity client gets released. Templates can store mods in their settings, right? It would be nice if you could also adjust the wasteland count/frequency for each size, so that your actual wastelands aren't tied so closely to the LFD wastelands.

I think it's because Fizzer's rewriting most of the codebase for Unity and only implemented the necessary functions to handle mods in the Unity version of Warlight, not the current Haxe/Flash implementation. I think Unity is also particularly friendly to Lua-based scripting/mods in a way that Haxe/Flash are not; basically seems like it's a new feature for the new Unity-only version of Warlight that's in development and that there's not going to be a focus on backporting those new features to the Flash version since it's gonna die anyway.

But that's just informed speculation, of course.
Customized Wastelands: 4/5/2017 04:28:04


TBest 
Level 60
Report
always refresh before posting... :/ sniped by a nice 7min xD

Edited 4/5/2017 04:29:16
Customized Wastelands: 4/5/2017 04:35:52

Fizzer 
Level 58

WarLight Creator
Report
Nice work, and congrats on having the first mod not made by me!

You should put this into Client_PresentSettingsUI so that players who are invited to a game can see what settings were used to make it:

local vert = UI.CreateVerticalLayoutGroup(rootParent);
UI.CreateLabel(vert).SetText('Number of unique wastelands = ' .. Mod.Settings.NumberOfUniqueWastelandValues);
UI.CreateLabel(vert).SetText('Wasteland value 1 = ' .. Mod.Settings.wastelandValue1);
UI.CreateLabel(vert).SetText('Wasteland value 2 = ' .. Mod.Settings.wastelandValue2);

Templates can store mods in their settings, right?

Yep! It even persists the Mod.Settings values so however you customize the mod's settings persist along with the template.

Why is there a limitation on modded games being accessible only in the unity client?

None of the Client_ hooks would be able to run unless I invested time into implementing Lua on Flash, iOS, and Android clients we have now, and I don't want to continue investing time in those platforms as they're all going to be replaced with Unity eventually.
Customized Wastelands: 4/5/2017 04:39:44


master of desaster 
Level 64
Report
Will fizzer do a mod that allows to customize wastelands to 100%? Like 5 wastelands of 3, 10 wastelands of 4 etc. Or will this be another project idea for you?

Looks good so far! You were quite productive already while i were sleeping.

Edit: or even make it so you can set a fixed amount of wastelands (as you do now) and make the wastelands customizable by percentage? 30 wastelands over all, 30% of 3, 70% of 4?

Edited 4/5/2017 04:45:19
Customized Wastelands: 4/5/2017 05:14:53


Master of the Dead 
Level 63
Report
Will fizzer do a mod that allows to customize wastelands to 100%? Like 5 wastelands of 3, 10 wastelands of 4 etc. Or will this be another project idea for you?

or even make it so you can set a fixed amount of wastelands (as you do now) and make the wastelands customizable by percentage? 30 wastelands over all, 30% of 3, 70% of 4?
Yeah I'll do this. This was my final goal once I got it functional :p
Customized Wastelands: 4/5/2017 05:19:59


Master of the Dead 
Level 63
Report
You should put this into Client_PresentSettingsUI so that players who are invited to a game can see what settings were used to make it
Thanks!

None of the Client_ hooks would be able to run unless I invested time into implementing Lua on Flash, iOS, and Android clients we have now, and I don't want to continue investing time in those platforms as they're all going to be replaced with Unity eventually.
Sounds good.
Posts 1 - 8 of 8   

Contact | About WarLight | Play Risk Online | Multiplayer Strategy Game | Challenge Friends, Win Money | Skill Game | Terms of Service