Coder Social home page Coder Social logo

ale32bit / capy64 Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 1.0 512 KB

Lua 5.4 fantasy computer

Home Page: https://capy64.alexdevs.me

License: Apache License 2.0

C# 61.61% Lua 36.30% Nix 2.08%
csharp dotnet dotnet-core fantasy-computer fantasy-console game lua pixel

capy64's Introduction

ko-fi

Stats Most used languages
Alex's GitHub stats Top Langs

capy64's People

Contributors

ale32bit avatar apachedrag427 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

apachedrag427

capy64's Issues

gpu.drawLine coordinates are not 1-based

Side

  • Lua side
  • C# side
  • Other
  • I don't know

Describe the bug
the drawRectangle works as if top,left is 1,1 and drawLine seems to think it's 0,0 (maybe?)

To Reproduce
Steps to reproduce the behavior:

  1. gpu.drawRectangle(1, 1, 10, 10, 0xf0f0f0, 1)
  2. gpu.drawLine(1, 1, 10, 1, 0xff00ff, 1)
  3. the pink line skips the first pixel

also gpu.setSize(width, height) doesn't want to work... in the lua console gpu.setSize(320, 200) just returns "false" and is ignored in my .lua scripts.

other than that it's quite fun to play with =oD

Expected behavior
Capy64_1-0-0-beta-bug

Screenshots
https://drive.google.com/file/d/1QqZGjJURalmwXRGJsTJgfzclTUNYqllv/view?usp=share_link

Desktop (please complete the following information):

  • OS: Windows 10
  • OS Version: [e.g. 22]
  • Capy64 Version: [e.g. 0.0.9-alpha]

Additional context
Add any other context about the problem here.

Missing SDL2 libraries on Linux.

Side

  • Lua side
  • C# side
  • Other
  • I don't know

Describe the bug
Resizing the window completely freezes Capy64.

To Reproduce

  1. Use linux.
  2. Resize the window.

Expected behavior
I expected the window resize.

Desktop (please complete the following information):

  • OS: Fedora 37 x86_64
  • Version: 0.0.9-alpha

Additional context
capylog.txt

Capy64 fails to resize on windows

Side

  • Lua side
  • C# side
  • Other
  • I don't know

Describe the bug
Capy64 crashes on commit 444652da127f49d277c5f6853289ac277b0c2b6d saying that it can not load libSDL2-2.0.so.0.

This might be because of these lines as the binaries are built on Linux and not Windows.

To Reproduce
Steps to reproduce the behavior:

  1. Open Capy64
  2. Resize window
  3. See error

Expected behavior
Properly resize the window

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox 109.0.1
  • Version: Windows 10 Pro 10.0.19045 Build 19045

Additional context
Full error message:

crit: Microsoft.Extensions.Hosting.Internal.ApplicationLifetime[6]
      An error occurred starting the application
      System.AggregateException: One or more errors occurred. (Unable to load DLL 'libSDL2-2.0.so.0' or one of its dependencies: The specified module could not be found. (0x8007007E))
       ---> System.DllNotFoundException: Unable to load DLL 'libSDL2-2.0.so.0' or one of its dependencies: The specified module could not be found. (0x8007007E)
         at Capy64.Extensions.Bindings.SDL2.SDL_GetWindowFlags(IntPtr window)
         at Capy64.Extensions.GameWindowExtensions.IsMaximized(GameWindow window) in /home/runner/work/Capy64/Capy64/Capy64/Extensions/GameWindowExtensions.cs:line 70
         at Capy64.Capy64.OnWindowSizeChange(Object sender, EventArgs e) in /home/runner/work/Capy64/Capy64/Capy64/Capy64.cs:line 122
         at Microsoft.Xna.Framework.SdlGameWindow.ClientResize(Int32 width, Int32 height)
         at Microsoft.Xna.Framework.SdlGamePlatform.SdlRunLoop()
         at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop()
         at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
      --- End of stack trace from previous location ---
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
         --- End of inner exception stack trace ---
         at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
         at Microsoft.Extensions.Hosting.Internal.ApplicationLifetime.NotifyStarted()

Capy64 fails to properly initialize on Linux

Side

  • Lua side
  • C# side
  • Other
  • I don't know

Describe the bug
Screen doesn't really render anything, apart from the "Installing CapyOS..." text on first launch, and if resized, blacks out.
Console displays messages informing that it can't locate SDL2 files (libSDL2.dll.so, SDL2.dll, etc.) and errors.

To Reproduce
Steps to reproduce the behavior:

  1. Simply launch Capy64 (preferably with a terminal, to see output)
  2. See errors

Expected behavior
Capy64 to launch normally.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Fedora Linux 36, x86_64
  • Browser: Ungoogled Chromium
  • Version: (of Capy64) Alpha 0.0.9

Additional context
I included the console logs here. My guess is just that it's looking for the libraries at the wrong places, but I'm unsure.

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.