What the hell is your frog doing? It took me five nights, but I finally got the hang of it
Db: How does it feel to play Gamer
Go rogue – Reverse the game code – end metaphysical superstition
See a lot of people on the use of items on a lot of guesses, many are not very accurate.
It took five nights to reverse program logic and extract data to understand what your quack was doing.
This is a kind of God-like approach to these questions.
The answers will be updated, so feel free to ask questions in the comments section.
- Is Gung really travelling?
- How did Gung choose his route?
- How did Gung travel?
- How is the time spent on each route calculated?
- What if Gung had run away?
- What are the properties of roads?
- What is the effect of each item?
- How to use objects scientifically?
- What postcards will you bring back on your trip?
- What special products will you bring back on your trip?
- When will the friends visit?
- What should I feed my friends when they visit?
- How long will the clover last?
- What’s the probability of a four-leaf clover?
- What’s the probability of the raffle ball?
- How to achieve achievements?
- Is there a way to get clover for free?
Is Gung really travelling?
Have to admire the game designer, in order to pursue the real, to achieve a very complete set of travel simulation system, there is rigorous travel route design.
Since the journey is not presented to the user, I expected the logic to be simple. I was a bit surprised when I discovered the travel simulation, which prompted me to delve deeper into the game’s logic.
The explanation below uses a little graph theory jargon, but it should be intuitive.
How did Gung choose his route?
There are four regions in the program: East, West, South and north
Each region is designed as a connected undirected graph, and gAK travels by making a path between two points on the graph.
By working backwards, I extracted the information from the program and spent some time generating what each map looked like with Graphviz.
If you’re interested, I can upload the raw data to Github
Each vertex on the graph represents a location. Each location can be passed by the frog and trigger some event.
In addition to the usual locations, there are four special locations that affect the route of a quack trip:
- START START point (cap green)
- GOAL Destination (peach)
- PATH PATH (orange)
- DETOUR (light yellow)
Between the connecting nodes are edges, which represent the paths of the connecting locations. These paths also trigger events such as meeting partners and taking photos.
Every time I started a trip, according to my old mother (?) Packing items, gung will:
- Choosing a destination to carry special foods or items can influence the selection of a region, some items can increase the probability of being selected for a particular region, and even directly determine the selected region. The choice of destination within an area also depends on the items carried. The details of each object will be mentioned later.
- The location is determined by the destination, and each location has a corresponding location, which is described in the code as the local county/transportation hub.
- It’s interesting to choose detour sites. I guess the author’s goal is to make the trip more diverse. Each trip adds several additional detour sites within the region, and carrying items doesn’t seem to affect the decision to detour sites.
- To generate the travel path through all locations, the classic connected graph of graph theory is used to find the shortest path Dijkstra algorithm, with the logic of path location and detour location, and finally calculate the travel path.
How was the destination chosen?
The specific destination selection is related to the item being carried, and the priority of each item corresponding to the destination is superimposed with the area bonus to obtain the probability of each location being selected.
Each destination’s region bonus starts at 30, and the item’s region attribute increases the region bonus of the destination in the region, increasing the probability that all destinations in the region will be selected.
Some items can be directly restricted to selected areas (D).
How did Gung travel?
Having settled on a location, Gung would travel:
- Carrying items determines how long the frog can travel, ranging from 6 to 72 hours.
- The initial strength is determined by the item you carry and increases from 100.
*Refer to the following manual for specific properties of the item - When passing a road (side) on the map, the terrain attributes of the road and the attributes of the items carried will interact with each other to determine the actual time and energy spent by the quack.
- You may meet a friend along the way, and you may travel with him or her later in the trip, which may appear in a postcard.
- According to the road attributes, there is a certain probability that the relevant postcards will be sent.
- When exhausted, the frog must rest for three hours, after which its strength will return to 100. Rest time also counts as travel time.
- When the destination is reached or travel time runs out, the frog returns home.
- He would come home with shamrocks and raffle tickets.
- If they reach their destination before time runs out, the frogs will build on that and bring back local specialties and collectibles.
Therefore, if your frog has not come home for a long time and has not brought any local products home, it may be that he has been exhausted many times on the road and fainted on the roadside.
How is the time spent on each route calculated?
Set:
Is the current pathTime consuming
For the current pathTerrain increase time
For the current pathTerrain,
Is the number of articles carried
Is the carrying orderAll of the items haveCommon, mountain, sea, cave, any terrainMovement speed effect value.
If the current road is normal terrain, the time is reduced by stacking movement speed effects:
Or if the current road is a mountain, sea, or cave terrain, the base time remains the same and the terrain increase time is reduced by stacking movement speed effects:
If carrying an all-terrain movement speed enhancement item such as The Odeon Quitre, the movement speed effect will be superimposed again on this basis:
Ultimate acquiredIs the actual time spent on that path.
What if Gung had run away?
If you haven’t packed a lunch for a long time and have no food in your bag or on your table, Quo will run away angrily from home.
Put some food on the table, and Gung will be home in five to thirty minutes.
Interestingly, running away also counts as the number of trips taken in the achievement calculation… Emmmm.
What are the properties of roads?
Each road (edge) that connects different locations has the following properties
- terrain
The four types of terrain areCommon, sea, mountain, cave - Time consuming
The physical and time loss of this road is divided into basic time and terrain increase time
It’ll take a little longer than that - Postcard probability
The probability of different elements appearing on a postcard
It is said that all map elements have real prototypes - The probability of meeting a particular partner
The details are as follows. I can’t go into any more details
What is the effect of each item?
Here is a map of the effect of blood spitting:
There are five different categories of objects
- Bento food bought in a store or won in a raffle
- Lucky charms except four-leaf clover and tǔ Yun (good luck) bell, which can be purchased, will be won by lottery
- Item Store purchase
- Specialty gung gets when traveling
- Collections of special specialties, usually obtained at the county hall, cannot be used
Attribute classification
- HP
- The maximum time (hours) determines the frog’s travel time
- Initial strength increase (%)
Increment at the beginningThe momentumThe distance you can travel - Random stamina increase (%) Increases the maximum stamina increase by random percentage points
- Risk items
- Clover gains the number of clover
- Additional random clover The maximum number of random additional clover obtained
- Raffle ticket Number of raffle tickets
- Increased quantity of items
Increased access to destinationsThe collectionThe probability of - Determines the probability that the region corresponding to the region is selected. If the value is D, the destination region can be directly determined
- Moving speed according to the terrain, improve moving speed, reduce the time spent by the path, in the same travel time can go farther
- The probability of a friend meeting a particular travel partner
- The probability of getting a postcard when encountering a terrain path
- The FLAG attribute sets specific flags that mainly affect the achievements system, as described below
How to use objects scientifically?
Here are a few examples of how objects and routes can work together
- Decide where you want to go
Carry bento and raffle earned amulets (お uri) increase the probability of choosing a specific region. Tickets won by lottery (usher) can bedetermineThe area that they went to.
Ex. :If you want to go north, useAt the core of his work. - The food with high maximum time value will take longer to eat, while the food with high physical strength increase value will take less time to eat faster.
- Food or items that increase the movement speed of a particular terrain by increasing the area speed bonus through the terrain along the route. The movement speed effects of different items can be stacked, as explained above.
- Match the buddies you meet on the road
Certain items can increase the chance of an actual encounter if you encounter a partner in the path
Ex. :Yellow aluco (cookies) drawn by lottery can increase the chance of encountering crabs on the road.
Comprehensive use (knock on the blackboard!!)
Gung wants to see a lighthouse in Akita Prefecture
- Akita Prefecture (3022) is in the north.
- Osho make-up ピロ charms (onion cakes?) It increases the probability of going north.
- お uri (blue amulet) increases the probability of going north.
- Now, if there is a northern train at work, Can directly decide to go north, above the bento and amulet can be changed.
- According to the destination probability table, the probability of carrying various tents to destination 3022 is higher.
- Look at possible routes and there’s a lot of mountain roads between 3000 and 3022.
- Carrying a rack – cellar tenshi ト (premium tent?) Increased mountain movement speed is more significant.
- Or if you have time, increase the chances of bringing something back with you in the Scot/Amorpha leaf or rings.
What postcards will you bring back on your trip?
Each path has a definite probability of encountering postcard elements.
Ordinary postcards are composed automatically. According to the road elements, the props carried and the companions encountered, the program will choose the appropriate background, foreground and the pose of chat and friends to synthesize the complete postcard. Roughly, there are about 120 combinations.
Some postcards with a specific storyline are single sheets, which is a good sign of the game’s creators: getting lost and looking at the map with friends is often seen at the edges of the map, and empty sewers are often found in the city’s sprawling transportation hubs.
What special products will you bring back on your trip?
As mentioned above, specialties are only acquired when you reach your GOAL, collectibles have a 15% chance of being acquired, and other items have the following probability:
There is a rule in the game code that collectibles must be collected three times, but it is not actually enabled and may be introduced in a later version
When will the friends visit?
Snails, bees and turtles visit from time to time. Stay for 180 to 270 minutes.
Bees need at least 3 collectibles to appear, and turtles need at least 6 collectibles.
What should I feed my friends when they visit?
Feeding a visiting friend is rewarded with shamrocks and raffle tickets:
On top of that, feeding items with rare FLAG properties gives you 20 more shamrocks and 1-4 more raffle tickets.
Friends remember the last three meals. Continuous feeding of the same item will reduce the number of gifts received in return.
For best results, rotate between four different gifts, as shown in the following list of preferences:
How long will the clover last?
There are twenty shamrocks in the flower bed.
The time of rebirth after the shamrock is cut is followed
Is normally distributed at
The range of:
Each is reborn independently. The minimum respawn is 5 minutes (300 seconds) and the maximum is 4 hours (14,400 seconds).
What’s the probability of a four-leaf clover?
In addition to the fact that the first four-leaf clover is automatically born upon completion of the tutorial, each clover has a 1% chance of being a four-leaf clover when reborn.
What’s the probability of the raffle ball?
- White: 60%
- Blue: 27%
- Green: 9%
- Red: 3%
- Kim: 1%
How to achieve achievements?
When frogs travel, there are a number of flags, which I have compiled from the code:
This is one of the false superstitions of metaphysics. The use of salutations has no effect on the rest of the game, does not change the probability of obtaining items or postcards, and does not affect the length of the trip.
Is there a way to get clover for free?
Can you guess?