Comments (6)
One thing I does not understand, why MegaGlest need force feedback ?
For disabling HAPTIC , you can apply this patch
--- source/shared_lib/include/platform/sdl/platform_main.h.orig 2016-03-27 01:19:15 UTC
+++ source/shared_lib/include/platform/sdl/platform_main.h
@@ -666,8 +666,14 @@ int mainSetup(int argc, char **argv) {
}
}
else {
+ auto failTimer = (SDL_Init(SDL_INIT_TIMER) < 0);
+ auto failAudio = (SDL_Init(SDL_INIT_AUDIO) < 0);
+ auto failVideo = (SDL_Init(SDL_INIT_VIDEO) < 0);
+ auto failJoy = (SDL_Init(SDL_INIT_JOYSTICK) < 0);
+ auto failGC = (SDL_Init(SDL_INIT_GAMECONTROLLER) < 0);
+ auto failEvents= (SDL_Init(SDL_INIT_EVENTS) < 0);
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
- if(SDL_Init(SDL_INIT_EVERYTHING) < 0) {
+ if(failTimer || failAudio || failVideo || failJoy || failGC || failEvents) {
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
std::cerr << "Couldn't initialize SDL: " << SDL_GetError() << "\n";
return 3;
from megaglest-source.
Well as I know MG doesn't need it (at least yet) but simple "init all" is very tempting 😃 when all works on linux & windows & macos where are done most/all of our tests.
Do you know something about: does someone is working on adding HAPTIC support for BSD? and how advanced is such work?
from megaglest-source.
I made a port update for 3.12.0: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205485 , with the previous patch. From what I understand, the problem with HAPTIC support is that its use some GNU/Linux specific events (I suppose in kernel space ?), and I know that FreeBSD is not intended to be a GNU/Linux OS. I think it will be necessary to add HAPTIC support in SDL2 code directly.
Update: version 3.12.0 are on the port with patch to not load HAPTIC module
The final patch used for HAPTIC are here
from megaglest-source.
Do you have this issue with the version 3.12.0 on the port ? issues: #72, and #73
from megaglest-source.
Hehe, I am not a FreeBSD user :). Feel free to comment those issues about, can you reproduce them or not. Two voices are better than 1 ;).
...and v3.12.0 is based on later commit than tests were done :).
My last test was done ~ creation date of this issue and was related only with this issue.
from megaglest-source.
I am sure that I don't have issue #73 (maybe it was OpenAL fault after all) , for the other #72 , I need to launch it on a terminal to see if error pop up. After some quick test I don't have issue #72
from megaglest-source.
Related Issues (20)
- Queueing commands after a morphing command cancels the morphing. HOT 2
- Add the option to use a texture for the mouse cursor
- The building rally point is not visible beyond a certain distance.
- Matrix chat room
- Double clicking on a game entry on the load menu should load the game HOT 3
- Implement ipv6 support
- CI needs additional tests for more recent compilers
- Doesn't build/can't link to ssh on Ubuntu 22.04 (Jammy) HOT 4
- Unfinished buildings can't be added to a control group with other buildings
- Units always get queued on the same building when there's not enough resources.
- Game goes OOS shortly after player rejoins (when rejoin is enabled) HOT 2
- Run game with command line argsument, required video device
- 3.13.0, Fedora 36, Crash on start HOT 1
- Gameserver: Please allow binding to given IP address
- crash when using a 'less than' sign within the unitDied section of scenario xml
- Add official portable Windows package for local installs
- libidn.so.11 not found HOT 6
- Build fails with LTO
- Failed to start start_megaglest_g3dviewer HOT 4
- The AI becomes stuck while trying to sort a large group of enemies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megaglest-source.