Git Product home page Git Product logo

Comments (7)

xtreme8000 avatar xtreme8000 commented on May 29, 2024

Okay so:

  • rename dr_wav.h to dr_wav.c
  • rename libdeflate.lib to either deflate.lib or libdeflate.a
  • delete all LodePNG stuff except for lodepng.c and lodepng.h (this includes src/pngdetail.cpp)
  • delete glfw3.dll and glfw3dll.lib from lib/ those arent needed either

I'm not exactly sure what causes your GLFW3 and enet linking errors, but are you sure they are compatible to gcc? The missing functions __GSHandlerCheck and __security_check_cookie indicate these libraries were built with MSVC.
For GLFW3, download this, you will need lib-mingw/libglfw3.a from the zip.

from betterspades.

xtreme8000 avatar xtreme8000 commented on May 29, 2024

Something I forgot regarding dr_wav.c is you will have to uncomment Line 9 , which will define DR_WAV_IMPLEMENTATION

from betterspades.

kmsiapps avatar kmsiapps commented on May 29, 2024

Thank you for your kind response.

Existing errors had been fixed after replacing files, cleaning /build and rebuilding.
But I got another error: https://pastebin.com/c5y423du

I used lib-mingw/libglfw3.a as you suggested.
I'm using mingw-w64 on Windows 10 x64.

from betterspades.

xtreme8000 avatar xtreme8000 commented on May 29, 2024

Well for x64 you obv need the 64 bit library of glfw (lib-mingw-w64/libglfw3.a in the zip).

Your enet build is still not accepted by gcc, maybe rebuild that one with mingw-w64?

You should be able to compile it with the msys (+autotools) environment on windows, which you can download as a package from the mingw-updater. (for me its installed on path C:\MinGW\msys\1.0\msys.bat)

EDIT: I just found out enet can also be build with cmake, which is prob easier. It will work with the same command like on this project

from betterspades.

kmsiapps avatar kmsiapps commented on May 29, 2024

I finally succeeded in compiling. Thanks.
Redownloaded enet, glfw and libdeflate, and It worked like a charm :)

Attaching sources just in case someone needed it.
BetterSpades-standalone.zip

from betterspades.

Edgamer63 avatar Edgamer63 commented on May 29, 2024

ehm... now, how do I play? I tried with F2, so not much happens, help me xD

from betterspades.

xtreme8000 avatar xtreme8000 commented on May 29, 2024

Keyboard commands:

  • F1-F4: change camera mode (F1: top down view, F2: first person, F3: free camera, F4: third person)
  • V: be careful, this one teleports you to the center of the map (only for testing, might get you banned)
  • 8: will join the server defined in main.c at Line 1071
  • 9: will join the best team, Green

Note that this can change any time in the future, and is only temporary.

from betterspades.

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.