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

Specify Init Position #2

Open
karamarieliu opened this issue Apr 17, 2020 · 1 comment
Open

Specify Init Position #2

karamarieliu opened this issue Apr 17, 2020 · 1 comment

Comments

@karamarieliu
Copy link

karamarieliu commented Apr 17, 2020

Is there any way to specify where you want your character to initialize (ie x,y coordinates)?

Also, is there any way to extend the episode length beyond 2500 for Train Envs?

@karamarieliu karamarieliu reopened this Apr 19, 2020
@karamarieliu karamarieliu changed the title Extend Episode Length Specify Init Position Apr 19, 2020
@nsavinov
Copy link
Owner

Hi @karamarieliu,

I think the episode length could be extended by changing some constant like this one. If that doesn't help, you would need to edit wad-files directly. They internally contain ACS (action code scripts), which allow to do almost anything -- but require installing an editor (Slade) and some familiarity with their C-like language.

Setting up the starting point should be doable through omg library like this. Basically, everything is a "thing" (including player_start), you can retrieve "things" in various ways and change their properties like coordinates. In that example, I load a wad with the map, edit it and resave. The easiest way to install omg is pip install omgifol.

Hope that helps. Let me know if you have more questions!

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

2 participants