A mod to make Wesnoth's RNG a little less frustrating
Moderator: Forum Moderators
Re: A mod to make Wesnoth's RNG a little less frustrating
Yeah that's quite true The largest effect on gamestate is currently made by "accelerated speed" which would make game faster for everyone if host change it on map with AI computer players.. the planning mode probably takes #2 in that list... which doesn't really change any game state at all While both definitely don't change the rules of the game
But
Who said that it should be added into preferences... it could be a tick when you host a game... in this case there are a lot of things that change the gamestate from that host menu (eras, modifications, timer, income.. etc etc etc etc etc etc)
So I guess gnombat is right, it shouldn't be a UI checkbox.. it must be a host game menu..Pentarctagon wrote: ↑May 12th, 2018, 10:44 pm I assume a UI checkbox will be added for this at some point? Otherwise there probably aren't many people who will provide feedback.
Re: A mod to make Wesnoth's RNG a little less frustrating
The current implementation sounds like a preference ("set use_prng=yes in your preferences file") but maybe that's only intended for testing the feature. It would make more sense if it were one of the settings for hosting a game.enclave wrote: ↑May 12th, 2018, 11:54 pm But
Who said that it should be added into preferences... it could be a tick when you host a game... in this case there are a lot of things that change the gamestate from that host menu (eras, modifications, timer, income.. etc etc etc etc etc etc)So I guess gnombat is right, it shouldn't be a UI checkbox.. it must be a host game menu..Pentarctagon wrote: ↑May 12th, 2018, 10:44 pm I assume a UI checkbox will be added for this at some point? Otherwise there probably aren't many people who will provide feedback.
-
- Multiplayer Moderator
- Posts: 187
- Joined: March 16th, 2008, 6:39 am
Re: A mod to make Wesnoth's RNG a little less frustrating
The main difference really is that mods don't affect campaigns. The easiest way to implement this actually is to choose a mod, and graft it into the main game such that it affects campaigns as well. OR, "mainline" a RNG mod, and make it so that you can play campaigns from the scenario player menu (since that menu already has mod capability)gnombat wrote: ↑May 12th, 2018, 11:33 pmComputer_Player wrote: ↑May 12th, 2018, 10:39 pm The current mods that mess with RNG already destroy balance (since the entire game wasn't balanced for different RNG schemes, save for some rare eras).The current mods that modify the RNG are all add-ons, though. I think there's a difference between an add-on that modifies the game and a core preference that changes the game's behavior. In fact, I don't think there have ever been any preferences that actually change the rules of the game (as opposed to merely modifying the user interface) - this would be the first?
Re: A mod to make Wesnoth's RNG a little less frustrating
I hope use of this mod if this is actually released will be be possible to detect with Lua without having to rely on statistical methods like [do_command]. Similarly, access to this randomness generator might be useful for other scenario events.
No such limitation anymore.The main difference really is that mods don't affect campaigns.
- Celtic_Minstrel
- Developer
- Posts: 2209
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: A mod to make Wesnoth's RNG a little less frustrating
Can we please stop referring to this as "experimental PRNG"? Wesnoth's existing system is also a PRNG (Mersenne twister), but this phrasing implies that being PRNG is what makes this proposal differ form the default RNG.
Without understanding what exactly this does it's hard to propose a good alternative name, but... even something like "Experimental alternative RNG" would be better than "Experimental PRNG". I imagine Dave (as the person who implemented it) could probably come up with something better.
As for the proposal itself, I guess I'm pretty neutral about it? It'll be interesting to see how it works out, at least.
Without understanding what exactly this does it's hard to propose a good alternative name, but... even something like "Experimental alternative RNG" would be better than "Experimental PRNG". I imagine Dave (as the person who implemented it) could probably come up with something better.
As for the proposal itself, I guess I'm pretty neutral about it? It'll be interesting to see how it works out, at least.
Re: A mod to make Wesnoth's RNG a little less frustrating
It’s easy to say that when none of your add-ons are incredibly long single-player campaigns.enclave wrote: ↑May 12th, 2018, 11:24 pm Those add-on authors can then state the recommended RNG theme to use with their mod. I feel this would be my last concern if a mod is compatible/balanced for specific type of RNG or not.. despite I made an add-on (Q CIV) which would only work allright with default RNG I don't see a problem in it.
I’ll just quote myself from Discord:
shadowm wrote:I'd like to think that players should have a choice with regards to how to play my campaigns, but I can't help but feel that any kind of semi-officially-sanctioned changes devalue the amount of effort I put into testing and tweaking scenarios.
And yes, that also extends to the CTH mods (as in actual WML/Lua mods, not engine changes) that people have developed. I did end up having to deny people the ability to play my campaigns with one of them but that was really for technical reasons. (Namely one of the events it injects interferes with several situations where I need to override CTHs to 0% or 100%.)
A casual observer wouldn't realize that the amount of time I spent testing and tweaking IftU's final boss scenario is on the order of days on and off.
And most of that was precisely to account for the random nature of battle outcomes.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: A mod to make Wesnoth's RNG a little less frustrating
Maybe I'm not understanding something about this new experimental mode or general balancing, but it doesn't seem like this should have any affect on balance? As I understand it, this mode just makes the series of hits and misses stay around the expected values for damage dealt and damage received over a shorter time scale compared to the current pure Law of Large Numbers approach. In which case, where does balance come into play?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: A mod to make Wesnoth's RNG a little less frustrating
I don’t really know. What I said could be based on incorrect information from gfgtdf (who is a developer and probably looked at the code, though), especially considering that Dave (Denivarius) didn’t really address what I said above at the time, which was a follow-up to this conversation:
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: A mod to make Wesnoth's RNG a little less frustrating
what I done to my different luck mod is I cancelled different luck on all units with special abilities (poison, slow), they stayed unnaffected..shadowm wrote: ↑May 13th, 2018, 3:45 am I don’t really know. What I said could be based on incorrect information from gfgtdf (who is a developer and probably looked at the code, though), especially considering that Dave (Denivarius) didn’t really address what I said above at the time, which was a follow-up to this conversation:
Screenshot_20180512_234456.png
this could be done here too probably if its really making assasin 100% poison with new system.
or at least make it softer for poison slow units.
The truth is that it sounds quite realistic that if assassin has 3 hits and marksman it is really expected to do at least one hit, no? you will still not know which of them will be hit 1st or last hit.. so it's in a way unpredictable.. but I guess maybe the chance should be limited to 85-90% then? somehow...
in this case maybe content creators could tick something to make different RNG themes disabled in host menu if they want.. but i think recommendation for RNG theme could be enough... maybe if its strongly recommended then highlight text in red...shadowm wrote:And yes, that also extends to the CTH mods (as in actual WML/Lua mods, not engine changes) that people have developed. I did end up having to deny people the ability to play my campaigns with one of them but that was really for technical reasons. (Namely one of the events it injects interferes with several situations where I need to override CTHs to 0% or 100%.)
Last edited by enclave on May 13th, 2018, 4:17 am, edited 1 time in total.
- Celtic_Minstrel
- Developer
- Posts: 2209
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: A mod to make Wesnoth's RNG a little less frustrating
I think the most logical way under this new system would be to divorce poison/slow chance from hit chance. For example, before the attack, roll once to see if poison/slow takes effect, then ignore poison/slow for the actual hits.
It wouldn't extend well to other similar abilities though, such as stun.
It wouldn't extend well to other similar abilities though, such as stun.
Re: A mod to make Wesnoth's RNG a little less frustrating
I feel like I probably like this idea... sounds very nice.. not 100% sure, but idea sounds good..Celtic_Minstrel wrote: ↑May 13th, 2018, 4:22 am I think the most logical way under this new system would be to divorce poison/slow chance from hit chance. For example, before the attack, roll once to see if poison/slow takes effect, then ignore poison/slow for the actual hits.
It wouldn't extend well to other similar abilities though, such as stun.
Again thinking of it.. it will probably be incompatible with custom addons realying on it... might even be a nightmare (I fortunately don't have enything I would care about much in this regards)
Re: A mod to make Wesnoth's RNG a little less frustrating
Yep, this was done in the mod in my sig- poison/slow used the "classic" system still.Celtic_Minstrel wrote: ↑May 13th, 2018, 4:22 am I think the most logical way under this new system would be to divorce poison/slow chance from hit chance. For example, before the attack, roll once to see if poison/slow takes effect, then ignore poison/slow for the actual hits.
It wouldn't extend well to other similar abilities though, such as stun.
I'm curious if one could simulate a few thousand instances of both the classic and new-alt-exp PRNG and come up with a formula to adjust the turns in a scenario for the new system (or maybe the new code will show the way).
- Celtic_Minstrel
- Developer
- Posts: 2209
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: A mod to make Wesnoth's RNG a little less frustrating
Uhhh, that isn't what I suggested at all? Unless you're using "classic" in a weird way.Crow_T wrote: ↑May 13th, 2018, 2:18 pmYep, this was done in the mod in my sig- poison/slow used the "classic" system still.Celtic_Minstrel wrote: ↑May 13th, 2018, 4:22 am I think the most logical way under this new system would be to divorce poison/slow chance from hit chance. For example, before the attack, roll once to see if poison/slow takes effect, then ignore poison/slow for the actual hits.
It wouldn't extend well to other similar abilities though, such as stun.
Re: A mod to make Wesnoth's RNG a little less frustrating
I'm not sure that follows - if someone's complaining that assassins sometimes fail to poison the target, having a separate RNG roll for whether they poison the target seems to the opposite of the point of the mod. What if Dave just documents that assassins will deterministically always poison the target with this mod enabled?Celtic_Minstrel wrote: ↑May 13th, 2018, 4:22 am I think the most logical way under this new system would be to divorce poison/slow chance from hit chance. For example, before the attack, roll once to see if poison/slow takes effect, then ignore poison/slow for the actual hits.
It wouldn't extend well to other similar abilities though, such as stun.
I think that wouldn't extend to the slow ability though, as can be important to look at the odds of which attempt adds the slow, and how many unslowed counterattacks could hit.
- Celtic_Minstrel
- Developer
- Posts: 2209
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: A mod to make Wesnoth's RNG a little less frustrating
Ah, good point on slow... but still, I think poison always taking effect could have quite a significant effect on game balance...