Author Topic: AGS engine Linux port  (Read 79493 times)  Share 

Radiant

  • AGS Baker
  • Mittens Knight
  • With a gaze, you can command dragons.
    • I can help with publishing
    •  
    • I can help with story design
    •  
  • Radiant worked on a game that was nominated for an AGS Award!Radiant worked on a game that won an AGS Award!
Re: AGS engine Linux port
« Reply #620 on: 16 Jul 2017, 15:59 »
EDIT: I just noticed that we already have agsjoy stubs in the engine. Now I recall that there was an opened issue about some stubs missing.
If I had a full list of functions, I could add them.

Here you go:

bool IsJoyBtnDown (int button);
bool JoystickRescan ();
bool Unplugged ();
bool Valid ();
int GetAxis (int axis);
int JoystickCount ();
static bool IsOpen (int ID);
static Joystick* Open (int ID);
static void Click (MouseButton button);
String GetName ();
String JoystickName (int ID);
void Close ();
void DisableEvents ();
void EnableEvents (int scope = 0);
void Update ();
« Last Edit: 16 Jul 2017, 16:02 by Radiant »

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: AGS engine Linux port
« Reply #621 on: 11 Aug 2017, 00:30 »
Radiant, I downloaded latest version of agsjoy plugin, and it does not have "IsJoyBtnDown" function, only Joystick.IsButtonDown. Is it a function from some older version?

Radiant

  • AGS Baker
  • Mittens Knight
  • With a gaze, you can command dragons.
    • I can help with publishing
    •  
    • I can help with story design
    •  
  • Radiant worked on a game that was nominated for an AGS Award!Radiant worked on a game that won an AGS Award!
Re: AGS engine Linux port
« Reply #622 on: 11 Aug 2017, 07:38 »
That's possible, I was not aware there had been an update to this one. My version is labeled 1.2.0.0, by Ferry "Wiz" Timmers 2010, file size 90112 bytes. But this thread here also reads 1.2.0.

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: AGS engine Linux port
« Reply #623 on: 11 Aug 2017, 07:44 »
Could you upload your version somewhere?

Radiant

  • AGS Baker
  • Mittens Knight
  • With a gaze, you can command dragons.
    • I can help with publishing
    •  
    • I can help with story design
    •  
  • Radiant worked on a game that was nominated for an AGS Award!Radiant worked on a game that won an AGS Award!
Re: AGS engine Linux port
« Reply #624 on: 11 Aug 2017, 07:48 »
Here you go: http://crystalshard.net/test/agsjoy.dll
Where did you get your version, if it wasn't from that thread?

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: AGS engine Linux port
« Reply #625 on: 11 Aug 2017, 14:48 »
Where did you get your version, if it wasn't from that thread?
It was from that thread, I clicked on Download v1.2.0 link.

Radiant

  • AGS Baker
  • Mittens Knight
  • With a gaze, you can command dragons.
    • I can help with publishing
    •  
    • I can help with story design
    •  
  • Radiant worked on a game that was nominated for an AGS Award!Radiant worked on a game that won an AGS Award!
Re: AGS engine Linux port
« Reply #626 on: 11 Aug 2017, 15:23 »
Ok. Well let's go with that one, I'll sort things out on my end :) Thank you for your help.

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: AGS engine Linux port
« Reply #627 on: 11 Aug 2017, 15:34 »
There actually IS "IsJoyBtnDown" function in your version of plugin. I believe I should add it too in case that was used in any released game.

Radiant

  • AGS Baker
  • Mittens Knight
  • With a gaze, you can command dragons.
    • I can help with publishing
    •  
    • I can help with story design
    •  
  • Radiant worked on a game that was nominated for an AGS Award!Radiant worked on a game that won an AGS Award!
Re: AGS engine Linux port
« Reply #628 on: 11 Aug 2017, 15:51 »
It is, yes (e.g. Vector Vendetta).

Re: AGS engine Linux port
« Reply #629 on: 09 Sep 2017, 00:14 »
Hey! I have a small problem on MY COMPUTER but I don't know how to solve. I built the Linux engine in Ubuntu 16.04 and if I try running a game with it, it's excruciatingly slow. So I test and run my own game using Wine. I have Steam in this computer too. I play the Wadjet Eye games and they all work well. When I tried running Until I Have You from Steam it ran as bad as my own built Linux Engine, so I guess there is something more to it. I don't have much installed on this Ubuntu computer since I mostly use it only for developing my game in Adventure Game Studio (with Wine).

My computer config is: i7-7500U CPU @ 2.70GHz, Video is Intel HD Graphics 620 - Kabylake GT2, 16GB RAM, 512GB SSD. Also it's not heating or anything and I can run some fairly heavy stuff on this notebook.
My kernel (cat /proc/version): Linux version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017


I am posting this in case someone have any idea what's wrong, if I have some wrong library installed...

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
Re: AGS engine Linux port
« Reply #630 on: 09 Sep 2017, 01:55 »
Hey! I have a small problem on MY COMPUTER but I don't know how to solve. I built the Linux engine in Ubuntu 16.04 and if I try running a game with it, it's excruciatingly slow. So I test and run my own game using Wine. I have Steam in this computer too. I play the Wadjet Eye games and they all work well. When I tried running Until I Have You from Steam it ran as bad as my own built Linux Engine, so I guess there is something more to it. I don't have much installed on this Ubuntu computer since I mostly use it only for developing my game in Adventure Game Studio (with Wine).

Linux port has only software renderer available at the moment, which runs slow, especially if game scales to larger display resolution. That would be my first guess. On Wine you have Direct3D and OpenGL (if you are using AGS 3.4.1).

The solution would be to make OpenGL renderer work on Linux, which may be trivial, except someone needs to make such change (this also requires a knowledge of what headers/libraries to add to the engine).