It is currently 26 Feb 2017, 10:03
   
Text Size

DotP Universal Generator

Moderator: CCGHQ Admins

Re: DotP Universal Generator

Postby RiiakShiNal » 07 Sep 2015, 23:33

It depends on what you use the prefixes for. If you are using the prefixes for Deck IDs then for ID blocks it's fine as long as you keep below the 32-bit limit. For Multiverse IDs (they are also limited to the signed 32-bit integer space) since you start off with a 6-digit number from gatherer the only 4 digits IDs that would be guaranteed to work would be from 2146 through 1000. This is why I don't use my prefix for Multiverse IDs (I use the actual IDs). For images I use the RSN prefix for which there are no problems (Images take strings not numbers).
Problems with base game cards: DotP 2014 Core Fixes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
RiiakShiNal
Programmer
 
Posts: 2076
Joined: 16 May 2011, 21:37
Has thanked: 72 times
Been thanked: 450 times

Re: DotP Universal Generator

Postby Xander9009 » 07 Sep 2015, 23:40

Alright. Thanks for the clarification (or reminder... You've mentioned before, I just didn't really consider that it would be that close to the limit). Unfortunate, but oh well. I did at least realize art IDs were strings since the CW uses CW_ as the art prefix.

In that case, I think it would be nice if the generator did the same thing. Allow the prefix to be 4 digits, but don't add it to the Multiverse ID. Just add it to the filename and art ID.
_______________________________
Community Wad - Get or share decks - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2452
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 80 times
Been thanked: 314 times

Re: DotP Universal Generator

Postby thefiremind » 08 Sep 2015, 08:54

My choice of limiting to 3 digits was exactly for that reason: I didn't want people to come here saying "something doesn't work" then after a long time troubleshooting we discover they used a prefix that was too high. Using different prefixes (including none) for different things would be a useless complication imho. Do we really have more than 900 (100 to 999) modders working on this?

Anyway I don't think I would be adding the feature in a short time even if I decided to add it: the different prefixes would need to be passed to the plugins so there would be more to change than what it seems.

If at least we managed to make Magic Duels moddable, that would be a good incentive to keep this tool up-to-date...
< Former DotP 2012/2013/2014 modder >
Currently active in the Magic Duels section.
User avatar
thefiremind
Programmer
 
Posts: 3504
Joined: 07 Nov 2011, 10:55
Has thanked: 117 times
Been thanked: 711 times

Re: DotP Universal Generator

Postby Xander9009 » 08 Sep 2015, 11:14

Alright. It's not that big of a deal (especially since I don't actually use the prefix, since I always code for the CW). Although, out of curiosity, what do you mean it would need to pass different prefixes to the plugins? The plugins could use the prefix as-is, just without adding it to the MultiverseID tag, couldn't they? Either way, I tried changing it myself (before you responded), but I didn't do anything about passing multiple prefixes. I just upped the maximum to 9999, rather 999, and set the output plugin to set the MultiverseID tag to the original MultiverseID property discovered by the input plugin rather than using the PrefixID. Those two changes alone made it do what I expected, but you might be thinking of something I'm overlooking. (Wouldn't be the first time.)

EDIT:

Taking advantage of the fact that without the MultiverseID tag being affected by the prefix, only strings are, I wanted to see how difficult it would be to make it a text box rather than a number box, but since there's already a text box to go by (the search field), it was easier than expected. I just wanted to see if it could successfully add "CW_" into the FILENAME and ARTID fields (technically the CW uses just "CW" for the ARTID field, but it was just a test).
_______________________________
Community Wad - Get or share decks - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2452
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 80 times
Been thanked: 314 times

Re: DotP Universal Generator

Postby Xander9009 » 09 Feb 2016, 20:45

Version 1.8 is up. (First page, link in the first post.)

Added missing abilities (some may have been in previous versions?).
Awaken
Cohort
Devoid
Ingest
Rally
Surge
Support

Eldrazi Scion tokens.

In order to match the rest of the CW, the ArtID is no longer prefixed and is instead set to the CARDNAME value (only if the plugin is set to create cards for the CW).
_______________________________
Community Wad - Get or share decks - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2452
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 80 times
Been thanked: 314 times

Re: DotP Universal Generator

Postby Xander9009 » 17 Apr 2016, 01:03

Version 1.9 is up. (Link in OP.)

Added:
Investigate
Skulk
Tap target (permanent, artifact, creature, enchantment, land).
This creature gets +-X/+-X until end of turn.

Fixed:
Target creature gets +-X/+-X until end end of turn.
Target creature gets +-X/+-X and gains ... until end of turn.
Add one mana of any color to your mana pool.
_______________________________
Community Wad - Get or share decks - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2452
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 80 times
Been thanked: 314 times

Re: DotP Universal Generator

Postby Xander9009 » 22 Sep 2016, 15:43

V1.10 - Link in OP.

Added:
Emerge
Crew
Fabricate
"Whenever NAME crews a vehicle,"

Fixed:
Variables directly named after functions (so, "EffectController" -> "oController" of "oEffectController").
Fixed Triggered ability guessing (which I'd apparently messed up at some point)
Token creation. Namely, fixed first strike (was converting to "FS" instead of "F"), double strike ("DS" -> "D"), and blue ("B" -> "U") tokens.
_______________________________
Community Wad - Get or share decks - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2452
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 80 times
Been thanked: 314 times

Re: DotP Universal Generator

Postby Xander9009 » 24 Sep 2016, 03:56

V1.11 - Link in OP.

Changed Crew to use functions instead of extremely long code.
Added support for "Create" keyword based token creation.
_______________________________
Community Wad - Get or share decks - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2452
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 80 times
Been thanked: 314 times

Previous

Return to Utilities

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form