A fish is hooked! Preparation before modifying game data

Click to start the game!

A fish is hooked! Can the data in it be modified?

OK! you can!

-provided-

As a modder or user, you shall refrain from all illegal commercial activities and other illegal actions through this game and the modified game under the premise of abiding by the law

The purpose of this article is to allow the modders to use their imagination and creativity to modify "A Fish Hooked!" " to explain the main points

This game is only allowed to play games for entertainment and use in software learning design and communication. Any form of plagiarism is prohibited

-The premise is over, thank you for your cooperation-

 

In short, treat this game as a stand-alone game modification.

First , download the game itself . The following is the download address.

GitHub1 (recommended)  

Network disk address (recommended) 

Then there is the browser. For various reasons, please be sure to download the Firefox browser (Mozilla Firefox)

Firefox browser download address

The next thing to prepare is a text editor

Generally, the TXT notepad can be opened on the computer, but if you really use the notepad to view and modify the following data files, it may not be...

If you can use Notepad to modify it without distinction, then please accept my admiration...

Sublime Text is recommended here  because the modified data configuration files are mainly json files

Using Sublime Text  to look at the json file will look better because it has various hints and coloring functions:

 

【Ordinary modification process】

Are the above game body/Firefox browser/Sublime Text ready?

It's going to be a big fight next. 

If you download the game body from the network disk [Have a Fish Hook!.zip], then unzip it and find the [HookedFish] folder

In order to avoid the trouble of identifying the file path, it is recommended to directly copy the [HookedFish] folder to the disk directory

For example, copy directly to the bottom of the E drive

By or by putting the [HookedFish] folder in the full English path. For example, the following picture is placed in the Files folder of the E drive. 

 

The next step is to use Sublime Text to click [File] --> [Open Folder] and select to open the [HookedFish] folder

 

After opening you should see:

[HookedFish] If the folder appears in it, you can proceed to the next step.

The next step is to find the [game.json] file, which is the file we mainly modify.

Click [resource] inside to see [game.json]

Then click [game.json] 

Cheer up! Finally got to see it!

Now that it's open, let's try a little knife first.

 

【Try to change the background color of a fish pond】

 This time I want to modify the background color of [Fish Pond with Water]. I believe you who have read " Fishing " will not be unfamiliar with [Fish Pond with Water].

So where do I need to modify to change the background color of [Fish Pond]?

First find the marker ["levels"] which represents the facilities on the map (line number 9)

Then enter a pair of square brackets [[]] to the right of the colon [:] to the right of ["levels"]

Find the place where the node is ["id":"1"] (line number is 88)

Then go down a few steps to find ["color"]

 

Now we're going to change the background color to military blue. The color code for military blue is #5F9EA0

It should be noted here that we only need [5F9EA0] and do not need [#]

The last written is [0x5F9EA0] where [x] is the x in the English letter

After the changes are made, [ Save ] Press the shortcut key [ctrl + s] to save.

 Go back to the [HookedFish] folder and use [Firefox] to open the [index.html] file

 Take a look at our modified results. Of course, you must save the previous modifications to [game.json] before viewing.

【Mixed Fish Pond】 Let's Go Princess Precure!  

Very good [water-filled fish pond] a piece of [military academy blue] done! 

 

 

【What to do if you change it】

1. It is still necessary to understand the knowledge about JSON, please click JSON tutorial  JSON syntax

2. Pay attention to the places that cannot be modified in the [game.json] file :

 ①Please  do not modify the part to the left of the colon (:); for example, in the above-mentioned ["id":"1"]["color":"0x5F9EA0"]

Do not modify the "id" "color" and the double quotation marks in it

② For other symbols such as [{ } [ ] , :] curly brackets, square brackets, commas and colons, please modify them carefully after mastering the above JSON tutorial

3.  The places that can be modified in the [game.json] file:

In general,  the part to the right of the colon (:) can be modified if it is enclosed by double quotation marks ("") or a number.

But for game balance and various other issues that may cause problems, please follow the instructions at the end of this article for reference

4. If the error is changed and the [index.html] cannot be opened, you can try to download the game body again and modify it from the [game.json] in the game body;

5.  Error checking Generally, Sublime Text will have an error prompt. When an input error occurs, press [ctrl + z] to cancel it in time. For example, a comma (the comma in line number 88) is accidentally deleted below.

At this time, some abnormal things will be displayed on line 89. For example, the colon in the middle of ["name":"level_1_name"] is marked with red

At this time, just press the shortcut key [ctrl+z] in time to undo the previous operation.

 Or you can select all in [game.json] through the online JSON verification tool and copy and paste it into the verification tool

Can see if there is a problem

 

【Modify the reference article】

A fish is hooked! Modify the text displayed in the game and multi-language settings

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324514692&siteId=291194637
Recommended