[RMXP] Export/Import a MAP to/from TEXT file

Started by Ssinssrigg, March 09, 2023, 10:09:27 pm

Previous topic - Next topic

Ssinssrigg

To Whom It May Concern  :^_^':
I was wondering if there is a way to Export/Import a MAP to/from TEXT file (as in the topic). I would like to try to use AI to generate maps, but in order to do, so I have to be able to generate a map from text file.
Anyone ever thought about it?  :naughty:
Have a good one!

KK20

If such a thing eventually (if it doesn't already) exists, it wouldn't be made for RPG Maker.

What do you expect it to do? Is the file like a paragraph that tries its best to describe a map, and then the AI would, using a given tileset, construct a map?

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Ssinssrigg

Once I would understand how "decrypted" map works, I would ask AI to create one for me. Simplifying - let's assume that text version of the map would look like that: Map001-000,000/C3/A1/D21|001,000/C4/A1/A1(...), where first '000,000' would be map square located in x=000 and y=000; C3 would stand for third row and third column of the tileset in the first layer; A1 for tile in the first row and column in the second layer etc.
I could teach that to AI and tell it that eg. 'C2' is a wall, and the table is made from tiles D11 to F13 etc.
Explaining and describing tileset would probably take a while, but later all I would have to do is to tell it to 'print' a 40x40 map, copy the code to the map file, paste it to the map folder and enjoy an AI generated map  :)

Here is a possible scenario I tested:
QuoteI need you to print a map for me. Use following formula: M-x,y/A#/A#/A#, where "M" is map name; x is row of the map described in three-digit number; y is a column of the map described in three-digit number; "A" is a tileset row; # is a tileset column. After first "/" you describe bottom layer of the map, after second "/" you describe middle layer of the map, and after third "/" you describe top layer of the map. A2 is the floor, C4 is the wall, form B3 to C5 is table, from E5 to E6 is the door. Generate 20x15 map description for me.

Sure, I can generate a 20x15 map for you. Here's the map description:

M-001,001/A2/A2/A2|M-001,002/A2/C4/A2|M-001,003/C4/C4/C4|M-001,004/A2/C4/A2|M-001,005/A2/A2/A2|M-001,006/A2/C4/A2|M-001,007/C4/C4/C4|M-001,008/A2/C4/A2|M-001,009/A2/A2/A2|M-001,010/A2/C4/A2|M-001,011/C4/C4/C4|M-001,012/A2/C4/A2|M-001,013/A2/A2/A2|M-001,014/A2/C4/A2|M-001,015/C4/C4/C4|M-001,016/A2/C4/A2|M-001,017/A2/A2/A2|M-001,018/A2/C4/A2|M-001,019/C4/C4/C4|M-001,020/A2/C4/A2|
M-002,001/C4/C4/C4|M-002,002/C4/C4/C4|M-002,003/C4/C4/C4|M-002,004/C4/C4/C4|M-002,005/C4/C4/C4|M-002,006/C4/C4/C4|M-002,007/C4/C4/C4|M-002,008/C4/C4/C4|M-002,009/C4/C4/C4|M-002,010/C4/C4/C4|M-002,011/C4/C4/C4|M-002,012/C4/C4/C4|M-002,013/C4/C4/C4|M-002,014/C4/C4/C4|M-002,015/C4/C4/C4|M-002,016/C4/C4/C4|M-002,017/C4/C4/C4|M-002,018/C4/C4/C4|M-002,019/C4/C4/C4|M-002,020/C4/C4/C4|
M-003,001/C4/C4/C4|M-003,002/C4/C4/C4|M-003,003/C4/C4/C4|M-003,004/C4/C4/C4|M-003,005/C4/C4/C4|M-003,006/C4/C4/C4|M-003,007/C4/C4/C4|M-003,008/C4/C4/C4|M-003,009/C4/C4/C4|M-003,010/C4/C4/C4|M-003,011/C4/C4/C4|M-003,012/C4/C4/C4|M-003,013/C4/C4/C4|M-003,014/C4/C4/C4|M-003,015/C4/C4/C4|M-003,016/C4/C4/C4|M-003,017/C4/C4/C4|M-003,018/C4/C4/C4|M-003,019/C4/C4/C4|M-003,020/C4/C4/C4|
M-004,001/C4/C4/C4|M-004,002/C4/C4/C4|M-004,003/C4/C4/C4|M-004,004/C4/C4/C4|M-004,005/C4/C4/C4|M-004,006/C4/C4/C4|M-004,007/C4/C4/C4|M-004,008/C4

KK20

I mean, if you ever get whatever AI engine you use to output something valid, I could probably come up with a script to convert the output to actual map data.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Ssinssrigg

I would love to try, but problem is, I need to see the result of AI generated map. I cannot properly "teach" AI to generate maps if I cannot see what has to be corrected/improved. Initial instructions would be simple; when successful, I would add more and more complicated instructions until I would be satisfied with created maps.
I'm using chatGPT, currently most popular one.