Opened 11 years ago

Closed 10 years ago

#2072 closed enhancement (fixed)

[PATCH] Advance technologies cheat

Reported by: Idanwin Owned by: Michael
Priority: Nice to Have Milestone: Alpha 16
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

A cheat that lets you advance to the final phase. Usefull for testing purposes.

Attachments (7)

0001-changePhase-cheatadded.patch (1.7 KB ) - added by Idanwin 11 years ago.
patch that adds advance to city phase cheat
multipleCheatPatch_v1.patch (6.5 KB ) - added by Michael 10 years ago.
Adds three cheats: phase cheat from Idanwin, get tech cheat and get all resource at once cheat
multipleCheatPatch_v2.patch (12.2 KB ) - added by Michael 10 years ago.
Merges 'DefaultParameter' and 'DefaultNumber'; additional flag 'isNumeric' can be set to force a numeric parameter.
multipleCheatPatch_v3.patch (13.5 KB ) - added by Michael 10 years ago.
Adds alternative syntax.
multipleCheatPatch_v4.patch (13.6 KB ) - added by Michael 10 years ago.
Just adds special phase support for generic celts.
multipleCheatPatch_v5.patch (12.1 KB ) - added by Michael 10 years ago.
Removed special phase for brits and gauls because they are only used in celts.
missingJsonFiles.patch (944 bytes ) - added by Michael 10 years ago.
JSON Cheat files were not included in the commit.

Download all attachments as: .zip

Change History (30)

by Idanwin, 11 years ago

patch that adds advance to city phase cheat

comment:1 by sanderd17, 11 years ago

Keywords: patch review added; cheats phase removed
Milestone: BacklogAlpha 15
Summary: Advance to final phase cheat[PATCH] Advance to final phase cheat

I included your patch for review, if that's ok for you.

The patch looks good enough to me. It will be nice for testing indeed (though it's a pity the cheat contains some characters that aren't usable in Atlas, but that's another bug).

Next time you create the patch, it's best to do it from the svn root directory though, that displays nicer in trac, and it's easier to apply for us (our svn directories don't get cluttered with patches).

comment:2 by leper, 11 years ago

Idanwin: Read SubmittingPatches (though the really important part of that is adding the review keyword)

sanderd17: I don't know if the patch changed before you added the comment, but that patch is from the root svn dir (though it is a git patch, but that is just passing -p1 to patch).

in reply to:  2 comment:3 by sanderd17, 11 years ago

Replying to leper:

sanderd17: I don't know if the patch changed before you added the comment, but that patch is from the root svn dir (though it is a git patch, but that is just passing -p1 to patch).

Oops, my bad.

comment:4 by Idanwin, 11 years ago

Replying to leper:

Idanwin: Read SubmittingPatches (though the really important part of that is adding the review keyword)

Thank you, didn't find this before.

comment:5 by historic_bruno, 11 years ago

"changephase" looks like it could be more generic by having a parameter of the phase name e.g. "town", "city", in case you want a cheat that only skips one phase.

Also, I think we should have a cheat that lets the player research any technology.

in reply to:  5 ; comment:6 by Idanwin, 11 years ago

Replying to historic_bruno:

"changephase" looks like it could be more generic by having a parameter of the phase name e.g. "town", "city", in case you want a cheat that only skips one phase.

I don't see why you would want to go to town phase, everything available in town phase is also available in city phase

Replying to historic_bruno:

Also, I think we should have a cheat that lets the player research any technology.

Totally agree

in reply to:  6 comment:7 by leper, 11 years ago

Replying to Idanwin:

Replying to historic_bruno:

"changephase" looks like it could be more generic by having a parameter of the phase name e.g. "town", "city", in case you want a cheat that only skips one phase.

I don't see why you would want to go to town phase, everything available in town phase is also available in city phase

Testing would be a good reason

Replying to historic_bruno:

Also, I think we should have a cheat that lets the player research any technology.

Totally agree

Will you implement this too? (and make the current cheat use this?)

comment:8 by sanderd17, 11 years ago

Keywords: simple added; review removed
Summary: [PATCH] Advance to final phase cheat[PATCH] Advance technologies cheat

Getting it out of the review queue for now, until the other requests are implemented.

comment:9 by leper, 10 years ago

Milestone: Alpha 15Backlog

comment:10 by Michael, 10 years ago

Keywords: review added

comment:11 by Michael, 10 years ago

Milestone: BacklogAlpha 16

by Michael, 10 years ago

Attachment: multipleCheatPatch_v1.patch added

Adds three cheats: phase cheat from Idanwin, get tech cheat and get all resource at once cheat

by Michael, 10 years ago

Attachment: multipleCheatPatch_v2.patch added

Merges 'DefaultParameter' and 'DefaultNumber'; additional flag 'isNumeric' can be set to force a numeric parameter.

comment:12 by Michael, 10 years ago

Any comments on this?

comment:13 by Michael, 10 years ago

Owner: changed from Idanwin to Michael

comment:14 by sanderd17, 10 years ago

Other idea discussed on IRC: http://irclogs.wildfiregames.com/2014-01-29-QuakeNet-%230ad-dev.log (starting 14:01)

The cheat should research the technology of the selected building. F.e. "brainiac 2" would research the second technology of the selected building, "brainiac 1 top" would research the top of the first technology pair (if the first technology is a pair).

This way, you still have to obey the rules somehow, but you can research techs without paying for it, or waiting for it, which is also good for testing.

by Michael, 10 years ago

Attachment: multipleCheatPatch_v3.patch added

Adds alternative syntax.

comment:15 by Michael, 10 years ago

Now, as suggested by sanderd17, the brainiac cheat can be used with an alternative syntax:

brainiac number [pair]
or
brainiac name_of_technology

number: [1, number of possible techs in selected building]
pair: top|bottom (default: top, is only used for paired techs)

by Michael, 10 years ago

Attachment: multipleCheatPatch_v4.patch added

Just adds special phase support for generic celts.

comment:16 by Michael, 10 years ago

@Sanderd17: Now generic celts are also handled. The patch chooses randomly what tech to use of the pair.

comment:17 by sanderd17, 10 years ago

The patch isn't working for the changephase cheat in special cases (I tested with britons). The city phase gets researched (I see the change in territory), but the "III" is still shown in the CC.

I think we can remove that cheat altogether, and just have the generic technology cheat.

Also, if you split on spaces, don't do it on a single space " ", but use a regex: /\s+/ .

And is the "get rich" cheat your own idea? I don't think we should add another cheat to get resources.

in reply to:  17 comment:18 by Michael, 10 years ago

Replying to sanderd17:

The patch isn't working for the changephase cheat in special cases (I tested with britons). The city phase gets researched (I see the change in territory), but the "III" is still shown in the CC.

The problem is that the brits and gauls do not use their custom phase yet. There is no entry in the civil_center.xml like

    <Technologies datatype="tokens">
      -phase_city_generic
      phase_city_britons
    </Technologies>

Is this intended or is it a bug ?

I think we can remove that cheat altogether, and just have the generic technology cheat.

We could do, but I like that one.

Also, if you split on spaces, don't do it on a single space " ", but use a regex: /\s+/ .

And is the "get rich" cheat your own idea? I don't think we should add another cheat to get resources.

Yeah, we can drop that.

by Michael, 10 years ago

Attachment: multipleCheatPatch_v5.patch added

Removed special phase for brits and gauls because they are only used in celts.

comment:19 by sanderd17, 10 years ago

Resolution: fixed
Status: newclosed

In 14712:

Add technologies cheat. Fixes #2072. Patch by boeseRaupe

comment:20 by sanderd17, 10 years ago

Keywords: simple review removed

by Michael, 10 years ago

Attachment: missingJsonFiles.patch added

JSON Cheat files were not included in the commit.

comment:21 by Michael, 10 years ago

Resolution: fixed
Status: closedreopened

comment:22 by O.Davoodi, 10 years ago

In 14718:

Adding the missing cheats from [14712]. Refs #2072

comment:23 by Michael, 10 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.