-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script Updating: Merge Groups of Simple Scripts into picoC scripts #38
Comments
Pokedex Scripts: While I agree that merging all these would be good, I have no idea how we could easily do so with the Regional scripts due to the scattered nature of National dex numbers of species in them. BW1 is the only easy one since its Regional dex is only the new Gen 5 stuff (Victini and beyond). Daycare Scripts: I tried merging these into a single picoC script a while back, but ran into trouble recognizing the contents of the Daycare slots so I abandoned it until I could research why. I don't remember how functional this code is, but here is the WIP script |
Depending on if picoC has any array serialization support (I'm not sure, cc @piepie62) we could either have files stored server side that get received same as LLD and your ideas for injecting from yesterday, or possibly have them pulled with a GET request from an API endpoint (cc @FM1337 for that)? In terms of the arrays themselves, going gen 4 and up the sizes are: To make these arrays, if we can make a key-pair set of species-NatDex number using coreAPI then it would be a simple matter of just feeding in a list of each RegDex's pokemon to a script that would check against those key-pairs then return a list containing the NatDex numbers for all of the pokemon for that RegDex. |
For client-side processing, I think you can do what you want with fetch_web_content and the json functions. Fetch a json file that is just an array listing every regional dex entry for the generation as the Species number, create the json object, check that it is valid and an array, get the array size, iterate through the array elements, check if it is an int and get int, and set the seen/caught flag. The flaw with this is that the API doesn't have a function for setting pokedex flags, but that's easy to fix by changing the API. Actually PKSM-Core doesn't let you reset Pokedex flags or just let you use species number. |
Dex flags are annoying to set because they depend on species, form, gender, and shiny value, which is why it currently requires a full PKX. Theoretically, an API that takes those four things could be added, but just using species is not really viable. |
I just updated the daycare script's code to match the current script API so it should now run on PKSM v9.2.0 but I haven't tested if the problems I was experiencing before (bizarre species value when trying to verify if slots are occupied) still happens |
Looking at for example Sav7::dex there's actually even more. The simplest way to implement in API would be to just add a function for registering a PKX, and have the script writer handle what is desired and needed for each generation by retrieving a default PKX for the generation and modifying its species and etc. The JSON fetched as described above would get more complicated. There's also doing that, but instead of a new API function you just stash whatever is in the first slot in the first box, use sav_inject_pkx, which writes the dex entry, and then restore whatever was there previously at the end. |
DPPt/HGSS Berry: Should be opened up to all berry trees, which requires more documentation (either provided or researched). DPPt/HGSS Lotto ID: This could/should be expanded to support all generations with ID-based Lotto (probably with research). Ideally this would give the user multiple winning ID options, such as:
DPPt Level Man: There's probably more daily NPCs that could be lumped into a single script with this. Illegal Scripts: I think they are too varied to all be combined into a single picoC script. Illegal item injection could be workable, with lists of illegal items per pouch+game/generation. Illegal dex scripts are unlikely to be easily combined. Dex manipulation is annoying enough now without trying to factor in legality (was this species/form/shiny released?). |
List of simple scripts (
.txt
) that would be better suited being merged into picoC scripts per section.Please Note!!!
This list is not yet complete, I will be continuing to work on it for a bit. My eyes are hurting from reading through the script list. I am simply posting it now in case anyone would like to put forth feedback on what's on it so far.
Please do not suggest scripts to add to this list until I have finished updating it.
Scripts to Merge
Encounter reset scripts
Black 2/White 2 Hidden Grotto scripts
Pokedex scripts
seen
/caught
dex scripts into one file. Ideal set up would be:Clear Mystery Gift Data
Ultra Sun/Ultra Moon and Sun/Moon Plaza scripts
Various Battle Facility scripts
Set Max Battle Points
in these scripts? May be better to have an overall 'Set Maxx
' script instead that also handles stuff like Pokedollars and other non-item based values?Daycare scripts
'Set max' script
BW/B2W2 Season scripts
DPPt Poffin scripts
DPPt/HGSS Berry scripts
Illegal scripts
USUM Battle Style scripts
SM/USUM Zygarde cell scripts
XY/ORAS O-Power scripts
DPPt Level Man scripts
DPPt Poketch scripts
DPPt Spiritomb scripts
DPPt/HGSS Contest scripts
HGSS Pokeathlon scripts
DPPt/HGSS Lotto ID scripts
B2W2 Join Avenue scripts
ORAS Mirage scripts
Further Ongoing Ideas (Behind the scenes)
Pokemon Injection scripts
Item Injection scripts
Pass Powers script
Issue Edit Changelog
The text was updated successfully, but these errors were encountered: