New commands invoked by ':' , "undo attack"

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Post Reply
soulmate81
Posts: 10
Joined: March 15th, 2007, 7:30 am
Location: Poland

New commands invoked by ':' , "undo attack"

Post by soulmate81 »

Hi.
Suggersion nr. 1
I think it could be a good idea to add few commands to 'command line'
There is a command to write a savegame but there is not to load it.
So it would be great if you could just type :l savegame (or longer version :load savegame). Of course with '!' commands woud not require any confirmation and so on..

Suggestion nr. 2
There is an option to undo the move with 'u' key but, if the move ends up with an attack of hostile unit we cannot undo it.
Do you think game would be too easy it that option was included ?

What do you think about that ?




( Wesnoth 1.3.1, Fedora 2.6.19-1.2911.6.5.fc6)
Imp
Posts: 317
Joined: January 8th, 2007, 10:56 am

Post by Imp »

Any events that use the RNG cannot be undone. Otherwise people will undo attacks and redo them until they get 100% hits and evade.
User avatar
irrevenant
Moderator Emeritus
Posts: 3692
Joined: August 15th, 2005, 7:57 am
Location: I'm all around you.

Post by irrevenant »

Imp wrote:Any events that use the RNG cannot be undone. Otherwise people will undo attacks and redo them until they get 100% hits and evade.
No, otherwise people can undo attacks and redo them. Whether they will is entirely up to them, and I don't know that it's our position to mandate how to best enjoy the game.

It sounds like a pretty tedious approach to me but, outside of MP, I can't see who it would harm.
Darth Fool
Retired Developer
Posts: 2633
Joined: March 22nd, 2004, 11:22 pm
Location: An Earl's Roadstead

Post by Darth Fool »

irrevenant wrote:
Imp wrote:Any events that use the RNG cannot be undone. Otherwise people will undo attacks and redo them until they get 100% hits and evade.
No, otherwise people can undo attacks and redo them. Whether they will is entirely up to them, and I don't know that it's our position to mandate how to best enjoy the game.

It sounds like a pretty tedious approach to me but, outside of MP, I can't see who it would harm.
The question in my mind is not who it would harm, but how it would benefit? In particular, the : commands are mostly for debugging purposes. I presume such a command would only be available in debug mode. In order to make the case that this should be added it would need to be argued that this would help for debugging purposes more than the added complication of an additional : command and the additional maintenance headache of dealing with an even more complicated undo algorithm. If it was implemented it would probably be something like a boolean switch in debug that allows you to undo everything.
soulmate81
Posts: 10
Joined: March 15th, 2007, 7:30 am
Location: Poland

Post by soulmate81 »

What do you think about suggestion 1.

Does it make sense to you to include ":load savegame" command ?
Personally I think it would be not very stupid feature after all and could take only a while of coding.

Regards.
Greg
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

Suggestion 1: possible, though most save games have names that would be tedious to type. Possibly one could just type :load and it'd bring up the load dialog.

Suggestion 2: I don't see the point of this. The entire idea of allowing undo is to allow players to plan out their moves more easily. Undoing an attack clearly has an entirely different purpose. In any case, even if this would have any benefit at all, it certainly does not have sufficient benefit to justify the (significant) difficulty in coding it.
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
User avatar
irrevenant
Moderator Emeritus
Posts: 3692
Joined: August 15th, 2005, 7:57 am
Location: I'm all around you.

Post by irrevenant »

Darth Fool wrote:The question in my mind is not who it would harm, but how it would benefit?
Clarification: I was talking to the idea of allowing undo of attacks, not to this specific implementation of doing it by overloading the ':' key.
Dave wrote:Suggestion 2: I don't see the point of this. The entire idea of allowing undo is to allow players to plan out their moves more easily. Undoing an attack clearly has an entirely different purpose.
It has similar purposes - it allows the player (especially the novice one) to experiment with different moves and see which work best.

It also avoids a similar annoyance to the fog one, where you attack then want to undo a move.
Dave wrote: In any case, even if this would have any benefit at all, it certainly does not have sufficient benefit to justify the (significant) difficulty in coding it.
Fair enough, then.
Last edited by irrevenant on March 31st, 2007, 4:20 am, edited 1 time in total.
soulmate81
Posts: 10
Joined: March 15th, 2007, 7:30 am
Location: Poland

Post by soulmate81 »

[quote] Suggestion 1: possible, though most save games have names that would be tedious to type. Possibly one could just type :load and it'd bring up the load dialog. [/quote]

Hi.
About the "new command" feature...
I didn't want to wait untill next release of the game so...
I've implemented for my personal use, and if you think that it would be any gain for the game, just tell to who I sould send changed source code.

Regards
Greg[/quote]
Darth Fool
Retired Developer
Posts: 2633
Joined: March 22nd, 2004, 11:22 pm
Location: An Earl's Roadstead

Post by Darth Fool »

soulmate81 wrote:
Suggestion 1: possible, though most save games have names that would be tedious to type. Possibly one could just type :load and it'd bring up the load dialog.
Hi.
About the "new command" feature...
I didn't want to wait untill next release of the game so...
I've implemented for my personal use, and if you think that it would be any gain for the game, just tell to who I sould send changed source code.

Regards
Greg
https://gna.org/patch/?func=additem&group=wesnoth
you should also read the patch guidelines
https://gna.org/patch/?func=additem&group=wesnoth
User avatar
JW
Posts: 5047
Joined: November 10th, 2005, 7:06 am
Location: Chicago-ish, Illinois

Post by JW »

irrevenant wrote:It has similar purposes - it allows the player (especially the novice one) to experminet with different moves and see which work best.

It also avoids a similar annoyance to the fog one, where you attack then want to undo a move.
Apparently you don't understand how much cheating this would put into the game. Even in SP people would be tempted to undo attacks far more than S/R, which I'm sure lots of people already do.

Why make it 10x easier to cheat in this game when we'd like to move in the other direction if possible??
CIB
Code Contributor
Posts: 625
Joined: November 24th, 2006, 11:26 pm

Post by CIB »

For "the other direction", you'd have to remove random numbers =)
soulmate81
Posts: 10
Joined: March 15th, 2007, 7:30 am
Location: Poland

Post by soulmate81 »

I've submitted patch (https://gna.org/patch/?704)
2 new commands are added
1. ":load - displays the load game window
2. ":l <savegame> - loads the game if it exists. If not , nothing happens.
Hope you will like it

I've forgot to write that documentation shoud be updated as well
(of course if this patch will be accepted)

Now I think that second suggestion (about undoing the attack) was rather bad.
Lets not go back to that topic again :)

Regards
Greg
User avatar
JW
Posts: 5047
Joined: November 10th, 2005, 7:06 am
Location: Chicago-ish, Illinois

Post by JW »

soulmate81 wrote:Now I think that second suggestion (about undoing the attack) was rather bad.
Lets not go back to that topic again :)

Regards
Greg
A man who quickly comes to his senses! :wink:

A good man indeed!
Masacroso
Posts: 10
Joined: March 25th, 2007, 6:29 am

Post by Masacroso »

Undoing attacks is a really bad idea I think, you ever can see the approximate damage of a attack in the calculation box before to attack. It have no sense undoings attacks cause their are not good, ever if you are a novice you can try the game in the easy mode of read something about the rules: type of tileset, resistance, type of attack, amount of life, etc...
User avatar
irrevenant
Moderator Emeritus
Posts: 3692
Joined: August 15th, 2005, 7:57 am
Location: I'm all around you.

Post by irrevenant »

Masacroso wrote:Undoing attacks is a really bad idea I think, you ever can see the approximate damage of a attack in the calculation box before to attack. It have no sense undoings attacks cause their are not good, ever if you are a novice you can try the game in the easy mode of read something about the rules: type of tileset, resistance, type of attack, amount of life, etc...
One good reason to allow undo attacks is that attacking currently breaks the undo chain.
eg. I move a unit, then I attack with a different unit. I then realise I've mismoved the first unit but can't do anything about it because I've attacked since. Annoying.
Post Reply