Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 1 of 17 1 2 3 16 17
ANet - The ultimate networkplugin for GS [Demo] #236067
11/11/08 18:25
11/11/08 18:25
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Hi!
Finaly it's here: The first ANet demo version. It comes with an german AND english manual. It's possible to use it with A6/A7 and Lite-C/C-Script.

You can get a full working demo here (limited to 4 connections only and you aren't allowed to use it in any commercial projects): ANet Demo

Please note that this is not the final version. This is much more a beta version! If you find Bugs, please report them in ThirdPartyTools with [ANet] at the beginning or write me a PM. If you find any mistakes in the manual (serious or not) post them here.

Homepage and Tutorial(s) comming soon!

Hope you like it!
Have fun wink
(Please tell me your critique!)


PS: Old thread: http://www.coniserver.net/ubb7/ubbthreads.php?ubb=showflat&Number=232436#Post232436


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: Dark_samurai] #236069
11/11/08 18:30
11/11/08 18:30
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
User

Joined: Apr 2008
Posts: 650
Hahaha, finally!
Thanks mate smile


Teleschrott-Fan.
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: Sajeth] #236071
11/11/08 18:31
11/11/08 18:31
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
looking forward to try it. thanx


EDIT::

Could you please post what version types of your plugin will be available for purchasing and what will be the features of each one of them?

btw, plugin looks very clean and easy to use. great work smile

Last edited by cerberi_croman; 11/11/08 18:47.


Ubi bene, ibi Patria.
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: croman] #236080
11/11/08 19:06
11/11/08 19:06
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
at last.

im trying now!


3333333333
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: Quad] #236085
11/11/08 19:18
11/11/08 19:18
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
User

Joined: Apr 2008
Posts: 650
Da ich mir nicht sicher bin, ob die Nachrichten hier im Board ankommen, schreibe ichs nochmal direkt hier rein:

Könnte dir kostenlos Webspace (+Top-Level-Domain natürlich) für dein Projekt anbieten - ich hab nen ziemlich grossen Server zur Verfügung (http://www.hosteurope.de/produkt/Virtual-Server-Linux-MAX) und könnte dir volle Rechte für FTP und SQL geben.
Auf Wunsch stehe ich dir auch bei der Programmierung der Webpräsenz zur Seite smile
Grüße, Sajeth wink


Teleschrott-Fan.
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: Sajeth] #236093
11/11/08 19:41
11/11/08 19:41
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
Dark_Samurai, i already have a question and a problem.

Click to reveal..

//------------------------------------------------------------------------------------------
//
//
//------------------------------------------------------------------------------------------
void start_clientserver()
{
//Client-Server Modus:
enet_init_server(2300,4,_str("")); //Initializes the server
enet_init_client(_str("127.0.0.1"),2300,_str("")); //Initializes a client
//which connects over the localhost with the server
while(enet_get_connection() == 3) //as long as the client-server mode consists
{
enet_server_poll(); //...needs to be called every frame!
enet_client_poll();
wait(1);
}
}




//------------------------------------------------------------------------------------------
//
//
//------------------------------------------------------------------------------------------
function main()
{
enet_init(); //ENet is initialized

randomize();
fps_max = 60;
video_mode = 8;
video_depth = 32;
video_screen = 2;
time_smooth = 0.9;
fog_color = 1;
camera.fog_end = 75000;

start_clientserver();
wait(-0.5);

level_load("test.wmb");
//enet_set_level("test.wmb");
wait(5);
enet_ent_synchronize();
wait(-0.5);

camera.x = camera.y = camera.tilt = wheel_i = vehicle_i = 0;

on_e = reset_vehicle_manually;
on_f1 = main;
ph_setgravity(vector(0, 0, -320 * 1.4));
ph_setcorrections(25000, 0.05);


camera.x = -500;
camera.y = -500;
camera.z = 150;
camera.pan += 45;
camera.tilt -=15;


shadow_stencil = 3;
//vector (random(200), random(200), 50)
player = enet_ent_create(_str("aut_f360.mdl"), nullvector, vehicle);

wait(-0.5);


}


after running the code it works fine until it reaches the enet_ent_create function. if i comment that out it works okay. why it wont create an entity?



SOLVED!!! But you must update manual cause this is major error. instead of: enet_ent_create(_str("aut_f360.mdl"), nullvector, vehicle); it goes: enet_ent_create(_str("aut_f360.mdl"), nullvector, _str("vehicle"));
you didnt mention in manual that it needs that _str part for action string.





Last edited by cerberi_croman; 11/11/08 19:52. Reason: SOLVED


Ubi bene, ibi Patria.
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: croman] #236095
11/11/08 19:56
11/11/08 19:56
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
in fact you can handle that _str()'s inside the plugin. Usage is same in SDK afaik. (but i guess it has something to do with c-script compatilbility)


3333333333
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: Quad] #236111
11/11/08 21:48
11/11/08 21:48
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
im sure im doing it wrong but i cant get it to work:

code:

Code:
#include <acknex.h>
#include "anet.h"

void start_server();
void start_client(); 
STRING* cl_sv="#10";
TEXT* some_txt = {
	strings = 2;
	string = "press c for client or s for server and then press enter!", cl_sv;
	flags |= VISIBLE;
	pos_x = 10;
	pos_y = 10;	
}
var some_number = 0;
PANEL* some_panel = {
	pos_x = 10;
	pos_y = 40;
	digits(0,0,"Client Count: %.0f",*,1,some_number);	
}


void main(){
	enet_init();
	inkey(cl_sv);
	
	if(str_cmp(cl_sv,"s")){
		start_server();
		str_cpy((some_txt.pstring)[0],"Server");
	}
	else if(str_cmp(cl_sv,"c")){
		start_client();
		str_cpy((some_txt.pstring)[0],"Client Mode");
	}
	else{
		printf("UH,oh... Decide if you are a Client or a Server, buddy.");
	}
	level_load("");
}



void start_server() 
{ 
	enet_init_server(2300,4,_str("")); //initializes the server with port 2300, 
	set(some_panel,VISIBLE);
	str_cpy((some_txt.pstring)[1],"Running in server mode");
	enet_set_event(1,_str("sv_client_connected"));
	while(enet_get_connection() == 1) 
	{ 
		enet_server_poll(); //...needs to be called every frame! 
		some_number = enet_connected_clients();
		wait(1); 
	} 
} 

void start_client() 
{ 
	int nameset = 0;
	STRING* name = player_name;
	enet_init_client(_str("127.0.0.1"),2300,_str("")); //Initializes a client 
	wait(-1);
	while(enet_get_connection() == 2) //as long as the client-server mode consists 
	{ 
		enet_client_poll(); 
		while(enet_get_clientid()==-1) wait(1);
		str_cpy((some_txt.pstring)[1],"Connected to server");
		wait(1); 
		if(!nameset) {enet_set_playername(name); nameset =1;}
	} 
} 


void sv_client_connected(var sender, STRING* msg) 
{ 
	printf("A new client connected!"); 
} 



3333333333
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: Quad] #236130
11/11/08 23:34
11/11/08 23:34
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
writing localhost and internal ip (192.168.2.1) instead of 127.0.0.1 worked

sorry for the post-combo.


3333333333
Re: ANet - The ultimate networkplugin for GS [Demo] [Re: Quad] #236167
11/12/08 13:13
11/12/08 13:13
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
@Quadraxas: Your problem is the poll loop. The poll function MUST be called every frame because this function handles all internal stuff. If you put this into the poll loop: "while(enet_get_clientid()==-1) wait(1);" It will only call the poll function once. After one call the connection can't be asstablished! => there won't be a connection!
To solve this problem put "while(enet_get_clientid()==-1) wait(1);" into another function.

localhost and 127.0.0.1 should work the same way... Please, try changing the problem mentioned above and try it again with 127.0.0.1. Post here if it still doesn't work!

@cerberi_croman: Thanks, I will add this to the manual!

@Sajeth: Thanks for this great offer! smile I will contact you after I finished the homepage!


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Page 1 of 17 1 2 3 16 17

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