Git Product home page Git Product logo

vitrix's Issues

Process doesn't end when you close Vitrix from the window

When you click the x to close the window, the window closes, and the process doesn't stop. This uses unnecessary ram space, of up to 50 MBs.

A way around this is to terminate the process with Ctrl+C, or through the task manager, but the inefficiency is likely to be a problem when launching from gui, so a fix is required.

Aspect ratio goes crazy when launching

This is an issue where it shows that the aspect ratio of the window changes, but does it alot.

Here is the ouput of the log:

package_folder: /home/kanj/.local/lib/python3.9/site-packages/ursina
asset_folder: /home/kanj/Vitrix
OS: posix
screen resolution: (1366, 768)
Known pipe types:
  glxGraphicsPipe
(4 aux display modules not yet loaded.)
Xlib:  extension "XFree86-DGA" missing on display ":0".
:pnmimage:png(warning): iCCP: known incorrect sRGB profile
info: development mode: True
application successfully started
info: changed aspect ratio: 1.779 -> 1.333
info: changed aspect ratio: 1.333 -> 1.779
info: changed aspect ratio: 1.779 -> 1.333
info: changed aspect ratio: 1.333 -> 1.779
info: changed aspect ratio: 1.779 -> 1.333
info: changed aspect ratio: 1.333 -> 1.779

and etc...

Test directory not found when running python build.py command

c:\source\Vitrix>python build.py

Build Path:        C:\source\Vitrix/build

------------------------------------------------------------------------------------------------------------------------

Preparing...

Done!

------------------------------------------------------------------------------------------------------------------------

Building...


C:
  from distutils.dir_util import copy_tree
package_folder: C:
asset_folder: .
screen resolution: (1920, 1080)
building project: C:
copying python
copying python Lib files
copying always included modules and extra modules
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying always include: C:
copying panda3d
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying: C:
copying ursina
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
compiling: C:
copying assets
ignore: C:
copying assetfolder: C:
ignore: C:
ignore: C:
copying assetfolder: C:
copying asset: C:
copying asset: C:
copying asset: C:
copying asset: C:
copying asset: C:
copying assetfolder: C:
ignore: .py
copying assetfolder: C:
C:
ignore: .py
ignore: .py
ignore: .py
creating .bat file
build complete! time elapsed: 8.46418023109436



Traceback (most recent call last):
  File "c:\source\Vitrix\build.py", line 106, in <module>
    shutil.rmtree(build_path + item)
  File "C:\Users\turus\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 747, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\Users\turus\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 598, in _rmtree_unsafe
    onerror(os.scandir, path, sys.exc_info())
  File "C:\Users\turus\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 595, in _rmtree_unsafe
    with os.scandir(path) as scandir_it:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\source\\Vitrix/build/src/test'

c:\source\Vitrix>

Above is the output from command prompt, error message being FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\source\Vitrix/build/src/test'

Build error on first time build

When building for the first time, windows python throws the error:

FileNotFoundError: [WinError3] The system cannot find the path specified: [build_location]

Chat Menu

The idea is a basic new server object called, "message", a new UI class that is used as a display for all the messages received. All of this and some other few perks and features I may add

Optimisation

Things to remove so the game is not too big (Windows):

vitrix/python/Lib/_pycache_/
vitrix/python/Lib/email/
vitrix/python/Lib/logging/_pycache_/ (and basically every _pycache_ folder)
vitrix/python/Lib/lib2to3/
vitrix/python/Doc/
vitrix/python/Tools/demo/
vitrix/python/Scripts/egg2maya*.exe
vitrix/python/Scripts/maya2egg*.exe
vitrix/python/Scripts/mayacopy*.exe
vitrix/python/Lib/site-packages/_pycache_/

When you remove all of these, the game is ~253 mb big

I'm gonna add more later

The "You Died!" text covers the "Paused" text

When you die, and the You Died! text appears on the screen, the mouse cursor doesn't escape grabb. So you have to use the tab key to pause the game, but even though it works, the Paused text actually covers the You Died! text, and makes half of it unreadable.

module missing, paths mixed up

venvctl should be in requirements. But even after that the paths are kind of warbled around and the only way I got it to run was to go inside the linux build, activate the virtual env, install ursina, create the '.unbuilt' file and run singleplayer.py directly.

Screenshot from 2022-04-15 14-25-02

and only way to quit seems to be alt+f4.

Add settings

Add more settings and read/write user/settings.json

Change in menu.py

Using,

if __name__ = '__main__':
    app.run()

allow other people reading the code know that menu.py is to be ran directly.

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.