ROM Hack WIP [ACNH] Code Generator

Mopquill

Grumpy Developer
OP
Developer
Joined
Oct 16, 2011
Messages
283
Trophies
0
XP
566
Country
United States
codes: can be enabled and turned off while in someones town locally, allowing easy item switching if you have multiple and much faster overall
save importing: have to import save, travel to town, drop items, leave, import save, reload game, visit town, drop them, etc
I'm still not understanding. How is it faster to export your save, load it into NHSE, generate however many items to your inventory, export that nhi, and import that into my save generator, than to just make the codes on my generator in the first place? You are, in my mind, asking for a lot of work for an odd fringe case that provides little to no benefit, in my mind.

I also am not aware of any documentation (after some light googling) that indicates what the structure of the NHI format is, nor even that they are intending for that format to be used in this way. I'm assuming it's binary, which sounds totally not-fun to deal with importing in a web language. Is there an option to output into JSON or anything?
 
D

Deleted User

Guest
I'm still not understanding. How is it faster to export your save, load it into NHSE, generate however many items to your inventory, export that nhi, and import that into my save generator, than to just make the codes on my generator in the first place? You are, in my mind, asking for a lot of work for an odd fringe case that provides little to no benefit, in my mind.

I also am not aware of any documentation (after some light googling) that indicates what the structure of the NHI format is, nor even that they are intending for that format to be used in this way. I'm assuming it's binary, which sounds totally not-fun to deal with importing in a web language. Is there an option to output into JSON or anything?

ok so let me put it this way:
say i have 3 different codes in my txt. each code has 40 items in it.
i can switch between all 3 of those WHILE in my other switches town locally, basically spawning 3 inventories in one trip.

with importing saves, i have to leave my town and reboot my entire game to get the inventory to load. it takes forever.

lots of people already have already made tons of NHIs like me, if i could create a code with 40 items using just one file, thats SO much faster than doing it individually

also, you can make multiple NHIs with one save file. you only have to dump your save once.
i know it sounds kinda obscure, but it would be really useful for a lot of people


i dont think you can export to json but il check, but im sure you could ask the dev of nhse.

--------------------- MERGED ---------------------------

i dont think you can export to json but il check, but im sure you could ask the dev of nhse.
nope
 
Last edited by ,

Iliak

Active Member
Newcomer
Joined
Dec 24, 2018
Messages
39
Trophies
0
Website
www.cheatslips.com
XP
279
Country
United States
Ah, it's cool that it has pictures of the items. Are you crediting me because you used my generator to sanity-check the code output? Also, it's pretty slow, you have a lot of JavaScript things happening there.
I credit you because my first draft was based on your editor, and I left the credits for the new release. It costs nothing and and it recognizes and pays tribute to the work of others when it deserves it.
But if it annoys you, I can remove it :)

What do you mean by Recipe Editor -- like pictures for DIY Recipe's items?
I don't have (as far I know) pictures of DIY recipes...
 

Mopquill

Grumpy Developer
OP
Developer
Joined
Oct 16, 2011
Messages
283
Trophies
0
XP
566
Country
United States
ok so let me put it this way:
say i have 3 different codes in my txt. each code has 40 items in it.
i can switch between all 3 of those WHILE in my other switches town locally, basically spawning 3 inventories in one trip.

with importing saves, i have to leave my town and reboot my entire game to get the inventory to load. it takes forever.

lots of people already have already made tons of NHIs like me, if i could create a code with 40 items using just one file, thats SO much faster than doing it individually

also, you can make multiple NHIs with one save file. you only have to dump your save once.
i know it sounds kinda obscure, but it would be really useful for a lot of people


i dont think you can export to json but il check, but im sure you could ask the dev of nhse.
I'll consider if it's not super tedious to add. Would it be necessary to involve NHSE at all if I gave the generator its own slot interface? I think I've been trying to avoid replicating NHSE features and/or turning this into too much of a web app.

@SciresM Is there documentation for the NHI format somewhere? And/or is it a standard format of some kind? (EDIT: I have it in my head you're an NHSE dev, if that is wrong, ignore this)


I credit you because my first draft was based on your editor, and I left the credits for the new release. It costs nothing and and it recognizes and pays tribute to the work of others when it deserves it.
But if it annoys you, I can remove it :)
It doesn't annoy me, I suppose I just don't feel like I've contributed? But I like the pictures; I was considering doing that myself in a later release, just haven't had enough time away from work.


I don't have (as far I know) pictures of DIY recipes...
Well, they would all look the same. I think you can just use the pictures of the items themselves.
 
Last edited by Mopquill,
  • Like
Reactions: Deleted User
D

Deleted User

Guest
I'll consider if it's not super tedious to add. Would it be necessary to involve NHSE at all if I gave the generator its own slot interface? I think I've been trying to avoid replicating NHSE features and/or turning this into too much of a web app.

@SciresM Is there documentation for the NHI format somewhere? And/or is it a standard format of some kind?
no, i guess it wouldnt. itd be easier for me to just import my nhis since i have them made, but its not the end of the world if i have to spend 20 mins manually making them codes using a slot thingy.

its just it is a bit tedious with the generator right now, doing one item at a time and such

a slot interface that generates a code for all the items at once would be great
 
Last edited by ,

Mopquill

Grumpy Developer
OP
Developer
Joined
Oct 16, 2011
Messages
283
Trophies
0
XP
566
Country
United States
no, i guess it wouldnt. itd be easier for me to just import my nhis since i have them made, but its not the end of the world if i have to spend 20 mins manually making them codes.

its just it is a bit tedious with the generator right now, doing one item at a time and such

a slot interface that generates a code for all the items at once would be great
Well, I've got bulk item code generation listed at the bottom of the generator as a potential future feature, it's just having the time/energy/motivation to do it.
 
  • Like
Reactions: Deleted User

SciresM

Developer
Developer
Joined
Mar 21, 2014
Messages
973
Trophies
3
Age
33
XP
8,294
Country
United States
I'll consider if it's not super tedious to add. Would it be necessary to involve NHSE at all if I gave the generator its own slot interface? I think I've been trying to avoid replicating NHSE features and/or turning this into too much of a web app.

@SciresM Is there documentation for the NHI format somewhere? And/or is it a standard format of some kind? (EDIT: I have it in my head you're an NHSE dev, if that is wrong, ignore this)

Heh, I haven't done any real work for NHSE, but it's an easy mistake to make since Kaphotics and I are really good friends and have historically worked on tools together.
 

Mopquill

Grumpy Developer
OP
Developer
Joined
Oct 16, 2011
Messages
283
Trophies
0
XP
566
Country
United States
Heh, I haven't done any real work for NHSE, but it's an easy mistake to make since Kaphotics and I are really good friends and have historically worked on tools together.
Yeah, I recall seeing a projectpokemon azure link, and I associate that with you, but after I posted I checked the github again, and didn't see you as a contributor, and I was like "well, I just unnecessarily tagged the atmosphere dev" lol.

Thanks! I'll go digging for that nhi spec at some point.
 
  • Like
Reactions: Deleted User

Mopquill

Grumpy Developer
OP
Developer
Joined
Oct 16, 2011
Messages
283
Trophies
0
XP
566
Country
United States
This is awesome!! how do you change the color variant with the item id tho?
Color variant is either a different item ID, or a customization value which goes in the quantity/customization field. Often, you are better off spawning customization kits, but in the event an item has a customization that cannot be accessed that way, as I understand it, you set the value like:

Say for the first customization value, e.g. a wood color, you want the second option,
and for the second customization value, e.g. a cloth color, you want the third option.

00 counts as an option, so we must subtract 1 from each. The left value, for some reason, is doubled. It's possible the first value is the right value, so it goes from right to left. In such a case, it would work like:

41 -- I think. I don't cheat myself, so I don't actually have any experience with this, just operating off of what people tell me and some occasional testing. Mess around with different values. I may actually mess with this at some point and do a full anatomy of it.
 

Mopquill

Grumpy Developer
OP
Developer
Joined
Oct 16, 2011
Messages
283
Trophies
0
XP
566
Country
United States
Your friendly neighborhood search function: https://gbatemp.net/search/198717839/?q=SSWWYYRR&t=post&o=relevance&c[thread]=560199

Helpful post: https://gbatemp.net/threads/animal-...-bugs-etc-thread.560199/page-202#post-9033478

Helpful Doc: https://docs.google.com/spreadsheet...KoH0R8a07vaVFxZHSwFiDlwzb6gZAE8U5C_vG/pubhtml

That doc has everything. Please ask any future questions directly to show me how you're parsing information instead of asking me to read a post and confirm, that is more work for me.
 

Lynn:-)

Well-Known Member
Newcomer
Joined
May 22, 2015
Messages
78
Trophies
0
XP
287
Country
Could someone help me with this please. I can get all codes to work fine but must be doing something wrong with the code editor to get DIY recipes. Every time I try and use the generated code the recipe picture is there but there is no recipe on as in its blank and I click on it to learn it and it says learned recipe for !. The code I used was 16A2 in item and 12D3 put in quantity

https://mpql.net/tools/acnh/codes/?...em-durability=&item-keys[a]=a&item-keys[dl]=y
 
Last edited by Lynn:-),

Mahesh

Well-Known Member
Member
Joined
May 1, 2020
Messages
130
Trophies
0
Age
43
XP
592
Country
United States
Could someone help me with this please. I can get all codes to work fine but must be doing something wrong with the code editor to get DIY recipes. Every time I try and use the generated code the recipe picture is there but there is no recipe on as in its blank and I click on it to learn it and it says learned recipe for !. The code I used was 16A2 in item and 12D3 put in quantity

https://mpql.net/tools/acnh/codes/?code=item&item-bytes=8&item-id=16A2&item-slot=24&item-quantity-format=dec&item-quantity=12D3&item-durability=&item-keys[a]=a&item-keys[dl]=y

well 12D3 is the code for screen wall, which doesn't have a DIY recipe. From the database, you would input the values from the last column into quantity.
https://mpql.net/tools/acnh/codes/item-list/
 

Mahesh

Well-Known Member
Member
Joined
May 1, 2020
Messages
130
Trophies
0
Age
43
XP
592
Country
United States
weird, the golden wall only takes 4 golden nuggets to make, there is no 'gold wall' that I could find in the database
edit
ah, you mean gold-screen wall, gotcha
 

iNfEk

Active Member
Newcomer
Joined
Oct 30, 2019
Messages
37
Trophies
0
Age
45
XP
143
Country
United States
I know the generator can generate random items from the list and it works great! there are sometimes where I generate something (like a gas range, 50 inch wall mount tv and one other item where when placed inside my house the colors constantly change and when putting it back into storage the item picture is missing but when hovering over it gives the name. Why does this happen? Also, is there a way to get the different colors of say the 50 inch wall mounted tv? There are 5 different colors. Black, white, red, blue and silver.
 

Mopquill

Grumpy Developer
OP
Developer
Joined
Oct 16, 2011
Messages
283
Trophies
0
XP
566
Country
United States
Could someone help me with this please. I can get all codes to work fine but must be doing something wrong with the code editor to get DIY recipes. Every time I try and use the generated code the recipe picture is there but there is no recipe on as in its blank and I click on it to learn it and it says learned recipe for !. The code I used was 16A2 in item and 12D3 put in quantity

https://mpql.net/tools/acnh/codes/?code=item&item-bytes=8&item-id=16A2&item-slot=24&item-quantity-format=dec&item-quantity=12D3&item-durability=&item-keys[a]=a&item-keys[dl]=y
Gold screen wall yea that's it sorry lol

For gold screen wall, you want the DIY column for the value, so: https://mpql.net/tools/acnh/codes/?...em-durability=&item-keys[a]=a&item-keys[dl]=y

I know the generator can generate random items from the list and it works great! there are sometimes where I generate something (like a gas range, 50 inch wall mount tv and one other item where when placed inside my house the colors constantly change and when putting it back into storage the item picture is missing but when hovering over it gives the name. Why does this happen?

Also, is there a way to get the different colors of say the 50 inch wall mounted tv? There are 5 different colors. Black, white, red, blue and silver.
Regarding question 1, I have no idea what you're talking about. Make sure you are specifying the value as 00 so you don't do something weird.

Regarding question 2, yes. Try using customization kits to see if you can change the color. If not, when you spawn one in, color is controlled by the quantity/customization value. Please read the help section that appears when you click a gyroid.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-