Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
web android translator (Engine SDK) #463103
11/15/16 15:56
11/15/16 15:56
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Hi guys ,

you know , from long time i say someting about creating a translator for our games to web and android platforms . but i found some problems to convert lite-c functions like procs and some other functions. so i create a new engine on c++ and i recreate it on html5 webgl , with this i can now convert all my functions from c++ to web then to android .

the sdk provide:
very fast rendring
http download fast and not freeze the engine
wait function (limited to android >= 5.1 and above + new browsers)
sounds and music players
PANELS,TEXTS,ENTITYS,ACTION

80% of acknex function recreated in this sdk.
and you also use effects and much more ...


if you intersted in to test my engine , just pm me then i will upload your new sdk for the engine.
and before i forget ,
you can use code::block to scripting bec is very fast and crossplatform and have a small size than vc++

link to compiler : http://www.mediafire.com/file/83jx0t9qb24o4x4/alphabox+engine+v1.23+compiler.rar
link to engine library : http://www.mediafire.com/file/bqcv0y3hikezk6k/engine+files+and+librarys.rar

the android compiler need JDK and this is the link : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Now just create your map in wed and convert it to directx and add it to your asset folder like the exemple in compiler folder.

and don't forget to edit .bat file , its important for translating and compiling to android.


This is some images from unfinished interface for the engine :








and this is an old project created with the sdk :




you see here some exemple scripts

Code:
#include "include/alphabox_engine.h"


BMAP* exemple_bmap   = bmp_create("bmap_name.jpg",NULL,NULL ,0);

PANEL* exemple_panel = create_pan(exemple_bmap,1); /// 1 : layer

int main()
{
	
	set(exemple_panel,SHOW);
	exemple_panel->pos_x = 50;
	exemple_panel->pos_y = 50;
	exemple_panel->scale_x = 1;
	exemple_panel->scale_y = 1;
	
	while(1)
	{
		exemple_panel->roll += 1; /// exemple roll
		
		
		wait(1);
	}
}



loading an entity :

Code:
#include "include/alphabox_engine.h"


void action_player()
{
	set(me,SHOW);
	my->alpha = 100
	while(1)
	{
		my->pan += 2;
		wait(1);
	}
	
}




ENTITY* exemple_ent = ent_create("entity.x",&vector(0,0,0),action_player);

int main()
{
	
	
	while(1)
	{
		exemple_ent->roll += 1; /// exemple roll
		
		
		wait(1);
	}
}




[size:14pt][/size]

This is how to use wait corotine :

Code:
#include <alphabox_engine.h>

void exemple_function()
{
	while(1)
	{
		printf("\nresult 1");
		wait(1);
	}
}


int main()
{
	
	add_function(exemple_function); /// with this now your function accept wait corotine
	
	while(1)
	{
		
		printf("\nresult 2");
		wait(1);
	}
}




and the resulta :

Code:
result1
result2
result1
result2
result1
result2
result1
result2
result1
result2
result1
result2
...




and finaly this is just a simple game engine and with you guys we can make it better and better .


Some demos to show how to load maps and apply collision: http://www.mediafire.com/file/2ahb3ak2s9xre5d/demos.rar


Last edited by Dico; 11/17/16 23:38.
Re: web android translator (Engine SDK) [Re: Dico] #463105
11/15/16 16:11
11/15/16 16:11
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hey there! This sounds very interesting! Looking forwards to give it a try! grin

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: web android translator (Engine SDK) [Re: 3run] #463106
11/15/16 16:55
11/15/16 16:55
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Sure , But i just want to send the link and i get this message "3run is over their Private Topic limit" .
I think you need to delete some messages so you will free space laugh

Re: web android translator (Engine SDK) [Re: Dico] #463107
11/15/16 17:02
11/15/16 17:02
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Done! laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: web android translator (Engine SDK) [Re: 3run] #463121
11/16/16 09:47
11/16/16 09:47
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
very interesting, I will take a look at it grin


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: web android translator (Engine SDK) [Re: painkiller] #463122
11/16/16 10:35
11/16/16 10:35
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Cool stuff. Now I need to get my hands on an android phone to test it. ^^

Re: web android translator (Engine SDK) [Re: Reconnoiter] #463124
11/16/16 11:07
11/16/16 11:07
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
This is how to load map and apply collision to it :


Code:
#include <alphabox_engine.h>


ENTITY* exemple_map = ent_create("map.x",&vector(0,0,0),NULL);

int main()
{
	set(exemple_map,COLLIDE); /// now your player will have a collision with the map.
	
	while(1)
	{
		
		wait(1);
	}
}




to create any light just use this :

Code:
LIGHT* new_light = create_light(1);/// 0 : directional light , 1: point light , 2 : spot light




to load and play music
Code:
int music_id = media_play("your media or sound (all types)" ,volume,flags);
//flags :
//LOOP : to make music or sound loop

media_pause(music_id); /// pause music or sound

media_resume(music_id); /// resume music or sound

media_stop(music_id); /// stop music or sound

set_mediavolume(music_id,85); /// set music or sound volume

get_medialen(music_id); /// Get len of music or sound

set_media_pos(music_id,50); /// Set reader position

int media_pos = get_media_pos(music_id); /// Get reader position

set_media_limit(music_id,20,100); /// set a limits for music or sounds

set_media_3d(music_id,vector(50,20,100)); /// set media 3d

///with this function you can create easly a media player :)





Some demos to show how to load maps and apply collision: http://www.mediafire.com/file/2ahb3ak2s9xre5d/demos.rar


Have a fun guys

Last edited by Dico; 11/16/16 11:08.
Re: web android translator (Engine SDK) [Re: Dico] #463125
11/16/16 11:09
11/16/16 11:09
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
oh i forget , you can plug and unplug your joystick during the gameplay without any problems , so you will not need to restart the game to get joystick working again.

Re: web android translator (Engine SDK) [Re: Dico] #463189
11/21/16 08:09
11/21/16 08:09
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Hey!

This project seems awesome!

I would really appreciate if we can get hands on the source code, best published at the acknex community git:
https://github.com/Acknex

If you publish it, i would take my time to look at the source code and put some free time into the rendering part of your engine.

Regards
Felix


Visit my site: www.masterq32.de
Re: web android translator (Engine SDK) [Re: MasterQ32] #463191
11/21/16 10:09
11/21/16 10:09
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
I tried to run the web demos but I get only a grey screen, I tested it on chrome, edge and internet explorer. Do I need to do something first?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: web android translator (Engine SDK) [Re: MasterQ32] #463194
11/21/16 12:35
11/21/16 12:35
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Originally Posted By: MasterQ32
Hey!

This project seems awesome!

I would really appreciate if we can get hands on the source code, best published at the acknex community git:
https://github.com/Acknex

If you publish it, i would take my time to look at the source code and put some free time into the rendering part of your engine.

Regards
Felix

Thanks for your reply , i will ask my partner because this is not an acknex project . it's a part of our engine .

Re: web android translator (Engine SDK) [Re: painkiller] #463195
11/21/16 12:37
11/21/16 12:37
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Originally Posted By: painkiller
I tried to run the web demos but I get only a grey screen, I tested it on chrome, edge and internet explorer. Do I need to do something first?


Can you upload the web source , i will look into it and test it here ?

Re: web android translator (Engine SDK) [Re: Dico] #463196
11/21/16 12:42
11/21/16 12:42
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
Originally Posted By: Dico
Originally Posted By: painkiller
I tried to run the web demos but I get only a grey screen, I tested it on chrome, edge and internet explorer. Do I need to do something first?


Can you upload the web source , i will look into it and test it here ?


I just tried to run the demos from the demos.rar file in first post.


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: web android translator (Engine SDK) [Re: painkiller] #463197
11/21/16 12:48
11/21/16 12:48
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
i test this demos on (firefox , opera).i haven't chrome on my pc but i will test it now , thanks for testing

Re: web android translator (Engine SDK) [Re: Dico] #463198
11/21/16 12:56
11/21/16 12:56
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
oh i test it now , the problem from XMLHttpRequest , it can't load any file from the hard disc (browser security) ,its normal. but it will work if you upload it to web host or compile it to android.

Re: web android translator (Engine SDK) [Re: Dico] #463200
11/21/16 13:48
11/21/16 13:48
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Guys anyone need a host just use the engine host , http://alphaboxengine.net .

you will get unlimited web space and 999 mysql and c_panel.
just choose free host and register and in seconds you will get your webhost for your games.

Re: web android translator (Engine SDK) [Re: Dico] #463210
11/21/16 21:26
11/21/16 21:26
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
I just found a problem in function export_to_json /: i will update the compiler soon.

Re: web android translator (Engine SDK) [Re: Dico] #463215
11/22/16 08:06
11/22/16 08:06
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Originally Posted By: Dico
Thanks for your reply , i will ask my partner because this is not an acknex project . it's a part of our engine .


Yeah, i know. But it would be awesome to have some open source clone of acknex, supporting some more modern features and plattforms.


Visit my site: www.masterq32.de
Re: web android translator (Engine SDK) [Re: MasterQ32] #463220
11/22/16 17:05
11/22/16 17:05
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Can you guys test this demos http://demos.alphaboxengine.net/ ?

Re: web android translator (Engine SDK) [Re: MasterQ32] #463221
11/22/16 17:09
11/22/16 17:09
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Originally Posted By: MasterQ32

Yeah, i know. But it would be awesome to have some open source clone of acknex, supporting some more modern features and plattforms.


If you have any knowledge in javascript i can send the javascript source to you so we can make the engine work better on the web .

Last edited by Dico; 11/22/16 17:10.
Re: web android translator (Engine SDK) [Re: Dico] #463223
11/22/16 18:56
11/22/16 18:56
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Dico
Can you guys test this demos http://demos.alphaboxengine.net/ ?
Test those demos, there seems to be some troubles with the input in both demos... instead of WSAD it's something like ZSQD, other that that it seems to work ok.

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: web android translator (Engine SDK) [Re: 3run] #463231
11/22/16 22:57
11/22/16 22:57
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Originally Posted By: 3run
Test those demos, there seems to be some troubles with the input in both demos... instead of WSAD it's something like ZSQD, other that that it seems to work ok.

Greets!


Great !! , thanks .
I will create a map with wed and convert it to web so i will see if the new version work great than first version.

Re: web android translator (Engine SDK) [Re: Dico] #463237
11/23/16 10:52
11/23/16 10:52
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
But please, don't make the same mistake Conitec did with that Ellipsoid vs. Polygon collision detection! At least use capsule hull or give as possibility to chose between ellipsoid, capsule and box hulls. I can show you an old thread, where a lot of forum members where complaining about this (it was in Rants section), but jcl and mainly Conitec didn't give a damn thing. It would be really sad if you will develop such a great engine, but with the same mistakes...

The 3DGS collision system is AWFUL.

My best wishes!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: web android translator (Engine SDK) [Re: 3run] #463246
11/23/16 13:10
11/23/16 13:10
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Originally Posted By: 3run
But please, don't make the same mistake Conitec did with that Ellipsoid vs. Polygon collision detection! At least use capsule hull or give as possibility to chose between ellipsoid, capsule and box hulls. I can show you an old thread, where a lot of forum members where complaining about this (it was in Rants section), but jcl and mainly Conitec didn't give a damn thing. It would be really sad if you will develop such a great engine, but with the same mistakes...

The 3DGS collision system is AWFUL.

My best wishes!

You're right , i get that problems too in acknex , what i use in my engine now is an AABB vs polygons . with this i get nice result for pc but still somehow slow a little on the web . i will fix that by break the loop when collision happen.

Re: web android translator (Engine SDK) [Re: Dico] #463250
11/23/16 15:55
11/23/16 15:55
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Dico
Originally Posted By: 3run
But please, don't make the same mistake Conitec did with that Ellipsoid vs. Polygon collision detection! At least use capsule hull or give as possibility to chose between ellipsoid, capsule and box hulls. I can show you an old thread, where a lot of forum members where complaining about this (it was in Rants section), but jcl and mainly Conitec didn't give a damn thing. It would be really sad if you will develop such a great engine, but with the same mistakes...

The 3DGS collision system is AWFUL.

My best wishes!

You're right , i get that problems too in acknex , what i use in my engine now is an AABB vs polygons . with this i get nice result for pc but still somehow slow a little on the web . i will fix that by break the loop when collision happen.
What about OBB collusion system, but with CAPSULE instead of ELLIPSOID? As far as I know, with AABB objects should be aligned with the axis, means that the BBOX is not rotated, OR rotated but with additional checks and loops. Plus, what about physics? I would really love to (and maybe most of the other users too) see properly working physX plugin made with SDK 3.x.x.

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: web android translator (Engine SDK) [Re: 3run] #463254
11/23/16 18:50
11/23/16 18:50
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
I will fix the aabb on the web then i will move to physics and see if the physX support web too.
for the obb i will add it to soon a i finish the old problems.

Re: web android translator (Engine SDK) [Re: Dico] #463256
11/23/16 20:54
11/23/16 20:54
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Keep it up guys, it looks really promising!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: web android translator (Engine SDK) [Re: 3run] #463355
11/29/16 17:37
11/29/16 17:37
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
nice project Dico, congrats!


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: web android translator (Engine SDK) [Re: sivan] #463359
11/29/16 19:04
11/29/16 19:04
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
Originally Posted By: 3run
Keep it up guys, it looks really promising!

We will , thanks

Originally Posted By: sivan
nice project Dico, congrats!


thanks Sivan

Re: web android translator (Engine SDK) [Re: Dico] #467557
08/12/17 11:41
08/12/17 11:41
Joined: Feb 2012
Posts: 371
Dico Offline OP
Senior Member
Dico  Offline OP
Senior Member

Joined: Feb 2012
Posts: 371
--------------------

Last edited by Dico; 08/18/17 18:34.
Page 1 of 3 1 2 3

Moderated by  aztec, Blink, HeelX 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1