Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 8 posts ] 
    Starmage
  Thu Jul 30, 2020 3:41 pm
User avatar
Member

Generic Townsperson
Hello everyone! Is there any way to automatically change all instances of one word/name/term being used within the game automatically?

Like, for example, I wanna change a race name within the game, and it would be quite difficult to manually replace each instance of that race name being mentioned in all texts/events within the game. As I might miss many, and it is also quite a tedious job especially you're already finishing the game. X( :(

So, is there any way I can make VX ace auto-replace every instance of a certain race name being mentioned into the new name I wanna give it? Thank you so much for any response! <3

Also, I am aware that Shaz' script exists:
https://forums.rpgmakerweb.com/index.ph ... file.17444

While it works great for what I want to do, you will still have to be editing the texts you wanna replace manually. >.< X( Which tbh, is kinda hard when you have like... 544 maps and events already in the game. T_T

Btw, I also wish to specify that what I am looking for is like, I want to literally change the name of a race from my game because it's a very controversial term, so I want every instance of it being mentioned within the game's events/common events and etc. to be replaced with something else... I want to literally make a new name for the race canonically if that makes sense? xD

_________________
Check out my Projects!! :)
ImageImage

ImageImageImageImageImageImageImageImage


Top Top
Profile      
 

    coyotecraft
  Thu Jul 30, 2020 5:17 pm
User avatar
Sponsor

Mysterious Wizard
Is that "Aryans"? Lol, the thought crossed my mind but I never said anything because it's just a name.

In VX Ace it's kind of difficult. I could theoretically parse the text with a script, like a word filter, and replace a word with a different word. But that'll probably mess up your text alignment somewhere. Potentially cutting off text in a textbox.


Top Top
Profile      
 

    Starmage
  Thu Jul 30, 2020 7:49 pm
User avatar
Member

Generic Townsperson
Hello coyotecraft and omg yes! Thats it exactly x(( I unknowingly used Aryan for my game because it was supposed to be inspired from the alleged real life aliens "Pleaideans" and their alternate was Aryans x(( It was only late that I knew of its derogatory origins :((

But yah, I am now using Errans as replacement for the word! ^_^ And ohh! If it is actually possible to do that via script to replace certain texts that would indeed be amazing coyotecraft! ^_^ :D Thanks so much for the response! :)

_________________
Check out my Projects!! :)
ImageImage

ImageImageImageImageImageImageImageImage


Top Top
Profile      
 

    Starmage
  Fri Jul 31, 2020 7:19 am
User avatar
Member

Generic Townsperson
I finally found a solution which was a script help from KK20! ^_^ :) To anyone who are also experiencing this hardship like mine, you may found his simple solution here:

https://forum.chaos-project.com/index.p ... 055.0.html

It's a script that replaces every instance of a certain word into your new word. ^_^ Though keep in mind, your old word will sill be showing within the editor. :)

_________________
Check out my Projects!! :)
ImageImage

ImageImageImageImageImageImageImageImage


Top Top
Profile      
 

    coyotecraft
  Fri Jul 31, 2020 9:10 am
User avatar
Sponsor

Mysterious Wizard
Aww. Well, I put together this crude script. Paste it above 'Main' in your scripts. Make sure Show Console is checked.
Use the script call look_for("keyword")
It's case sensitive. And it's going to miss any words you might have broken up with an apostrophe to overflow onto the next line. Like "Ay-
ran"
It should go through maps 1 to 999.
I say "should". I've only tested it with a handful of maps.
Under the map it's checking it'll list details about any event containing the word or phrase you're searching for.
It's the map data's file name, not the map name in the editor.
Image

A "replace word" feature is a simple step away. But it overwrites the map data while playtesting. So you would have to close and reopen the editor to see the change. And I'm not going to include it here because I don't want to be responsible for anyone messing up their project.
(Especially your's Starmage since you're releasing it on Steam)

I actually had a script for XP that let you edit text boxes while playtesting but XP had limited functions so I couldn't make it look nice as a stand-alone script. And never released it.

Expand to see the code.


Top Top
Profile      
 

    Starmage
  Fri Jul 31, 2020 7:08 pm
User avatar
Member

Generic Townsperson
Wooow! This looks like an amazing alternative to fully change the name within the game coyotecraft! :D Thank you so much for this effort! I am so excited to try out this script tomorrow when I get back home! ^^

Btw, sorry for the noob question, but where do I check the console? xD And once the script runs, it will now auto replace the term I want right? And just re open them after? ^^

_________________
Check out my Projects!! :)
ImageImage

ImageImageImageImageImageImageImageImage


Top Top
Profile      
 

    coyotecraft
  Fri Jul 31, 2020 9:20 pm
User avatar
Sponsor

Mysterious Wizard
"Show Console" is under "Game" in the top menu bar. Funny story, I haven't worked in VX Ace in a long time since I got a new laptop, so it wasn't already checked. I probably spent an hour the other day scratching my head trying to figure out why I wasn't seeing anything.
Image

This current script won't replace the word. It'll just show you where the word is at. I'm just wary, it has the potential to mess a lot of things up. I just put it together yesterday and have hardly tested it, you know. It's not just textboxes, it could change event names and references to filenames. I need to add more safety measures and messages. Like maybe a "skip" option. Also this is just the Map Data. It's not going though the common events, items, actor databases.

So it's not that powerful of a tool, yet. But it could potentially be of great service to translators. Like all the [はい・いいえ] [Yes/No] choice options, would be a snap to change with this I think.


Top Top
Profile      
 

    Starmage
  Sat Aug 01, 2020 3:00 pm
User avatar
Member

Generic Townsperson
Ohhh! That's wonderful, coyotecraft! <3 ^_^ I would really love to see you be able to make this tool in its completed state someday! :) It's a really nice way to find the words though! So thanks so much for sharing coyotecraft! :biggrin:

_________________
Check out my Projects!! :)
ImageImage

ImageImageImageImageImageImageImageImage


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group