GithubHelp home page GithubHelp logo

Comments (19)

astrofra avatar astrofra commented on May 28, 2024 3

Hi.
This specific issue ('assetc cannot be found on Linux') is fixed.
Could you update, try it, and let me know if this improve the situation ?
Thanks in advance!

(regarding PyCharm not being able to find Harfang, this might be a false positive).

from dogfight-sandbox-hg2.

ErkMkd avatar ErkMkd commented on May 28, 2024 1

Hi !
you can find the missions descriptions here:
https://github.com/harfang3d/dogfight-sandbox-hg2/blob/main/source/Missions.py#L577

Creates your own ones ! ;)

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

Hi!

The Python script is explicitly invoking the Windows version of the assets compiler.
I did a quick fix here

Could you pull the changes and let me know if this works for you ?
⚠️ You will have to install the binaries of assetc in this folder

Thanks again :)

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

https://github.com/harfang3d/dogfight-sandbox-hg2/tree/main/bin/assetc

How am I supposed to run the commands here from the terminal screen? When I download the library again, it gives the same error.

Compiling assets...
  0%|          | 0/100 [00:00<?, ?it/s]Traceback (most recent call last):
  File "/home/kadir/Desktop/kadirnar/github/dogfight-sandbox-hg2/source/main.py", line 32, in <module>
    dc.run_command("..\\bin\\assetc\\assetc assets -quiet -progress")
  File "/home/kadir/Desktop/kadirnar/github/dogfight-sandbox-hg2/source/data_converter.py", line 79, in run_command
    for line in execute_com(exe):
  File "/home/kadir/Desktop/kadirnar/github/dogfight-sandbox-hg2/source/data_converter.py", line 74, in execute_com
    p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '..\\bin\\assetc\\assetc assets -quiet -progress'
  0%|          | 0/100 [00:00<?, ?it/s]

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

Thanks for the feedback.
Can you please list the content of your bin\assetc folder ?
(you are not supposed to run any command line, except python3 main.py)

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024
(If you want to run the sandbox from the cloned repository, you will need to copy the Python and HARFANG binaries as well as the other modules in the bin folder). Follow the instructions detailled in the readme files found in each folder.

I just saw this post😅

image
Do I need to install them all? Is it enough for me to just download the python version?

There is only the readme.md file inside the bin\assetc file.

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

OK, fine.
You just need to download and unpack the AssetC archive (the last item on the list).
This is the binary tool that will compile all the graphic assets for your platform (textures, shaders, ...)

You need to unpack (unzip) the content directly into the bin\assetc folder (when you only have a readme at the moment).

'hope this helps :)

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

is this file path correct for linux?

dc.run_command("..\\bin\\assetc\\assetc assets -quiet -progress")

image

Error Mesage:

FileNotFoundError: [Errno 2] No such file or directory: '..\\bin\\assetc\\assetc assets -quiet -progress'
  0%|          | 0/100 [00:00<?, ?it/s]

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

image

The harfang library is not used in this repo. None of the harfang modules are active.

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

You are amazing👏👏👏 Now ubuntu is running as well. But there is a small problem. The screen turns upside down.

image

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

Ah yeah. I was expecting this one.
We're using OpenGL on Linux and DirectX on Windows. The framebuffer isn't oriented the same way between these 2 APIs and we need to take handle this.

I will fill a new issue as this is a complete different problem. Thanks for your help!

You should still be able to start the simulation by pressing [SPACE] the [i] to enable the autopilot.
Would you tell me how is the framerate ?

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

image

How can I see the framerate?I

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

@kadirnar we adressed most of the issues you had with the early version of the sandbox.
Could you give a try and let us know if it works for you ?
Thanks in advance.

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

Hi @astrofra,

Have you ever tested for linux? harfang package installation fails.

pip install harfang

ERROR: Could not find a version that satisfies the requirement harfang (from versions: none)
ERROR: No matching distribution found for harfang

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

Hi !
Yes, HARFANG & the Dogfight were tested on Linux and it works like a charm on Ubuntu 20.04LTS.
Your problem comes from the fact that the Linux wheel of HARFANG is not available from the Pypi repository (we are currently working out this problem).

You simply need to download the Linux wheel from here:
github.com/harfang3d/harfang3d/releases/download/v3.2.1/harfang-3.2.1-cp32-abi3-linux_x86_64.whl

and then, from your local download directory:

pip3 install harfang-3.2.1-cp32-abi3-linux_x86_64.whl

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

Does it work in python 3.10 version?
Have you tried running it in vscode?
Error: FileNotFoundError: [Errno 2] No such file or directory: '../config.json'
I fixed the code.
file_name="config.json"

Error:

FileNotFoundError: [Errno 2] No such file or directory: '/home/kadir/dogfight-sandbox hg2/../bin/assetc/assetc'
  0%|                                 | 0/100 [00:00<?, ?it/s]

It looks like there is a problem with the file paths?

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

Hi.

Please keep in mind the current working directory is source\.
There is no reason why it shouldn't work with VSCode, providing the code is running in the proper environement :)

from dogfight-sandbox-hg2.

kadirnar avatar kadirnar commented on May 28, 2024

It also worked successfully on linux. But windows also works more stable. Advice: Planes are too slow. I prefer fighter jets to be faster.Can we choose a plane in combat mode?

from dogfight-sandbox-hg2.

astrofra avatar astrofra commented on May 28, 2024

Considering the initial subject of this issue, I think we can consider it solved and closed.
@kadirnar if you have any other topic we would like to address, feel free to open a new issue or join our Discord server (follow www.harfang3d.com).

from dogfight-sandbox-hg2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.