Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
send_data question #182691
02/08/08 06:46
02/08/08 06:46
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
I'm sorry guys, but I'm just not getting send_data_to or send_data_id to work. Has anyone here EVER used send_data_to or send_data_id and has had it working properly? I've poured half my day into it and I simply can't get it to work, period! No matter what I try or simple the script is, it just doesn't work for me no matter what. I even tried JCL's example and nothing. No matter what it wont work.

Again I ask, has anyone here used send_data_to or send_data_id and actually had it working?


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.
Re: send_data question [Re: PrenceOfDarkness] #182692
02/11/08 00:08
02/11/08 00:08
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline
Newbie
RicheyMB2  Offline
Newbie
R

Joined: Feb 2008
Posts: 39
I'm having trouble with this to. I can't get send_data_to to trigger any kind of event client or server side. I'm sure that in this code pressing B on the server should at least change the video window test but it doesn't.

I've tried doing a send_string and that works fine. I'm sure I'm doing something silly.

Code:

#include <acknex.h>
#include <default.c>

typedef struct MYDATA{
int a;
int b;
int c;
} MYDATA;

MYDATA* mydata = {a=1;b=2;c=3;}

function client_event(void* buffer)
{
video_window(NULL, NULL, 112, "Client event triggered");
if (event_type == EVENT_DATA)
{
beep();
}
}

function server_event(void* buffer, var id)
{
video_window(NULL, NULL, 112, "Server event triggered");
if (event_type == EVENT_DATA)
{
beep();
}
}

function send_some_data()
{
video_window(NULL, NULL, 112, "Send");
send_data_to(NULL, mydata, sizeof(MYDATA));
}

function main()
{
vec_set(screen_color, vector(255,0,0));
video_mode = 7;
on_b = send_some_data;
on_client = client_event;
on_server = server_event;
}



Re: send_data question [Re: RicheyMB2] #182693
02/11/08 14:01
02/11/08 14:01
Joined: Feb 2008
Posts: 39
R
RicheyMB2 Offline
Newbie
RicheyMB2  Offline
Newbie
R

Joined: Feb 2008
Posts: 39
PrenceOfDarkness - do you ever get send_data_to to trigger an event on the client / server side. As fas as I can see my code does not even send any data.

If anyone has a really simple copy and paste example of this function working it would be really really useful.

Re: send_data question [Re: RicheyMB2] #182694
02/11/08 16:22
02/11/08 16:22
Joined: Aug 2004
Posts: 1,305
New York
PrenceOfDarkness Offline OP
Serious User
PrenceOfDarkness  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,305
New York
i have the same problem, i have a thread in the ask conitec section


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.

Moderated by  HeelX, Spirit 

Gamestudio download | 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