ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.78k stars 820 forks source link

Monopoly: Bot can't buy a house #14299

Closed MartySVK closed 10 months ago

MartySVK commented 12 months ago

Describe the bug

During the game, bots can not buy the houses. I tried the game in Flashpoint and it is working correctly. Unfortunately, I don't see any error in Ruffle.

image

But as you can see in the game log on the picture, the bot (Shoe) spends $0 to build a house "GO", which is wrong. "GO" is the name of the starting point, not the house. I see the same log every time they try to build the house. For some reason, this log is always shown twice (also the sound). image You can also see the money icon on the starting point, it should be on the house. This log is called from MonopolyGame script (row 2873), so you can start here. case Board.BOARD_STATUS_SELECT_BUY

Unfortunately, you have to play for a while to reproduce it. I can help with testing. Probably the fastest way is to play with one bot. Set difficulty to max. If the bot has the same properties from the same category(color), he will buy the house. You can help him if you buy property and trade with him for a few bucks.

Expected behavior

bots can build the houses

Content Location

Game URL - https://www.gameflare.com/online-game/monopoly-online/ SWF monopoly.zip

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

No response

MartySVK commented 12 months ago

there is one way to speed up a little. You can enable cheats in monopoly_config.xml - <settings enablecheats="true" before you roll the dice, you can choose the number and override the roll image

MartySVK commented 11 months ago

I found an easier way to test this issue. You have to enable cheats in monopoly_config.xml - <settings enablecheats="true" When you click on the property, just press "O" and you will own it. Then you can trade it and finish your move. Here is the video - https://youtu.be/5P2q7kC5lhs

MartySVK commented 10 months ago

the game is working great with https://github.com/ruffle-rs/ruffle/pull/14721 thanks Aaron1011