Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator showing a static image without animation #52

Open
tyson-ni opened this issue Aug 12, 2023 · 30 comments
Open

Simulator showing a static image without animation #52

tyson-ni opened this issue Aug 12, 2023 · 30 comments

Comments

@tyson-ni
Copy link

When I run the simulation and go to http://localhost:8000/simulator_home, the page just displays the static image below. The command run 20 seems to run without obvious error but no characters and animation show up.

download

@RuoyuG
Copy link

RuoyuG commented Aug 12, 2023

so do i. do you know how to fix it?

@edom18
Copy link

edom18 commented Aug 12, 2023

I have the same issue. I also checked whole city map using arrow keys but I wasn't able to see any animations. I also found out the list of characters didn't show information up.

@sayaphoenix
Copy link

同样的问题,而且不能保存

@www-Ye
Copy link

www-Ye commented Aug 12, 2023

same issue, how to solve it

@EvoNexusX
Copy link

同样 的问题,prompt上面有输出,但是画面没有显示

@HaochenZhao
Copy link

Same issue. I thought reloading it in browser might update the image, but it just shows "Please start the backend first." instead of any images.

@HaochenZhao
Copy link

If you are developers from China mainland (like me), this problem may come from openai api failure. When excuting step 3 in README.md, frontend server keeps printing ""POST /update_environment/ HTTP/1.1" 200 14" and nothing new appears in backend server. At least it works this way on my machine. To solve it, I add these code in reverie/backend_server/utils.py:
PROXY = 'socks5h://127.0.0.1:7890' os.environ['HTTP_PROXY'] = os.environ['http_proxy'] = PROXY os.environ['HTTPS_PROXY'] = os.environ['https_proxy'] = PROXY os.environ['NO_PROXY'] = os.environ['no_proxy'] = '127.0.0.1,localhost,.local' ,
then it seems to be ok now.

@edom18
Copy link

edom18 commented Aug 13, 2023

I solved the issue by creating movement folder. You can refer how to solve this to #55

The problem is reverie.py didn't check and create target directory.

@ferencdv
Copy link

Thanks, but where exactly should I put a "movement" folder in the directory structure? Should I put anything else in the folder or just make a folder. Apologies if this was covered somewhere else but I could not find it.

@ferencdv
Copy link

Thanks. I think it is discussed here: #44 (comment)

@edom18
Copy link

edom18 commented Aug 15, 2023

Yes, you're right. You can fix that by adding codes to reveire.py to check or create the folder before accessing files under the folder. Please refer to #55.

@EthenZhang
Copy link

same issue , and i have tried to create movement folder following #55 , it doesn't work .

@Flanua
Copy link

Flanua commented Aug 30, 2023

Same I added the code:
5555
And still same issue:
3333

222


111

44444


I'm using GPT4ALL Generative Agents (Using local LLM)

@renzhangzhe
Copy link

same issue, how to solve it

@Flanua
Copy link

Flanua commented Sep 7, 2023

P.S: I also tried to create movement folder manually in case that's the problem (because that code that I inserted still doesn't creating that folder for some reason) and the new movement chunks (like 0,1,2,3,4,etc) in .json format in that folder are still not created automatically for my simulation and the simulation base: base_the_ville_isabella_maria_klaus so we can't see our agents and time moving we can only see it moving by playing saved by default replays because those replays like: July1_the_ville_isabella_maria_klaus-step-3-1 and etc have movement folder and those movement chunks in json format inside movement folder present.

@thulanxc
Copy link

they are sleeping in the first 2000 steps or more, be patient. After 6 am, IR will start to move.

@PiotrZak
Copy link

agents processing information while sleeping or having REM phase?

@Flanua
Copy link

Flanua commented Sep 18, 2023

they are sleeping in the first 2000 steps or more, be patient. After 6 am, IR will start to move.

As you can see from my image it says that agent is working at the counter thought. But the agent didn't move at all since I started the simulation.
P.S: I also waited 30 min for agents to move but nothing happened.

@Flanua
Copy link

Flanua commented Sep 18, 2023

agents processing information while sleeping or having REM phase?

They plan their scheduler and do everything they supposed to do but we can't see it actually happening we can only see their actions in the console window though.

@thulanxc
Copy link

agents processing information while sleeping or having REM phase?

They plan their scheduler and do everything they supposed to do but we can't see it actually happening we can only see their actions in the console window though.

Just wait for them. In the first step they will plan for a long time. When they are planning, they do not move. After they finish planning(it costs a long time), they will start to sleep, and in your cmd window you will see lines run fast. Then when it comes to the 2000th step or more, 6 am in the simulated town, IR will start to move. So just wait.

@thulanxc
Copy link

agents processing information while sleeping or having REM phase?

They plan their scheduler and do everything they supposed to do but we can't see it actually happening we can only see their actions in the console window though.

You can run a demo first to see what will happen if everything is ok

@thulanxc
Copy link

agents processing information while sleeping or having REM phase?

I believe they do nothing while sleeping.

@Flanua
Copy link

Flanua commented Sep 21, 2023

Just wait for them. In the first step they will plan for a long time. When they are planning, they do not move. After they finish planning(it costs a long time), they will start to sleep, and in your cmd window you will see lines run fast. Then when it comes to the 2000th step or more, 6 am in the simulated town, IR will start to move. So just wait.

They don't move at all I waited a whole hour till the simulation ended! Do you understand.
Here is the proof that agents do planned actions but they don't gets reflected visually except the console window:
3333333333333

@Flanua
Copy link

Flanua commented Sep 21, 2023

You can run a demo first to see what will happen if everything is ok

What demo? You mean replays? Default replays are working great because agents movement information being saved properly to the movement folder during the simulation. We are not talking about replay here we are talking about simulation not working as it should with local LLMs though. It may work with GPT4 but many countries have no access to it and it pointless to make it online service only and it should support local LLMs in the first place.

@sardanian
Copy link

I am having the same issue where the browser is not updating the gamestate to show anyone do any movements. It seems to be working as it is showing actions by the agents, but the map and characters and current time are not updating in any way.

@sardanian
Copy link

I am able to run the replays fine. But the simluation is not running when I am trying to see it live via: http://localhost:8000/simulator_home
I have to wait till the simulation finishes to be able to see replays. I'd like to be able to see the simulation as it is running.

@myrainbowandsky
Copy link

have you resolved?

I am able to run the replays fine. But the simluation is not running when I am trying to see it live via: http://localhost:8000/simulator_home I have to wait till the simulation finishes to be able to see replays. I'd like to be able to see the simulation as it is running.

@myrainbowandsky
Copy link

When I run the simulation and go to http://localhost:8000/simulator_home, the page just displays the static image below. The command run 20 seems to run without obvious error but no characters and animation show up.

download

have you resolved?

@juliuswang2024
Copy link

同样的问题依旧存在,画面不动

@zqgong
Copy link

zqgong commented Feb 27, 2024

“environment\frontend_server\templates\home\main_script.html“  change like this, which will show the whole image.

   // Phaser 3.0 global settings. 
// Configuration meant to be passed to the main Phaser game instance. 
// const config = {
//   type: Phaser.AUTO,
//   width: 1500,
//   height: 800,
//   parent: "game-container",
//   pixelArt: true,
//   physics: {
//     default: "arcade",
//     arcade: {
//       gravity: { y: 0 } } },
//   scene: {
//     preload: preload,
//     create: create,
//     update: update } };

const config = {
  type: Phaser.AUTO,
  width: 4480,
  height: 3200,
  parent: "game-container",
  pixelArt: true,
  physics: {
    default: "arcade",
    arcade: {
      gravity: { y: 0 } } },
  scene: {
    preload: preload,
    create: create,
    update: update },
  scale: {zoom: 0.5} };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests