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 (TipmyPip), 18,633 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
Page 1 of 3 1 2 3
why no send_skill_to? or send_skill_id ? #177699
01/13/08 05:56
01/13/08 05:56
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 just really curious, why isn't there a send_skill_to? or send_skill_id?

I mean there are work arounds, but for me to do that work around I need to not only send the skill I want to change but the value I want to change it to as well. Not to mention the entity I want to change. I tried sending it all in a string and just using execute or var_for_name, but simply put: it wouldn't work.

I think the community wouldn't mind a send_skill_to or a send_skill_id, my question is why isn't it there?

Btw, forgive me if there is some kind of send_skill_to function and I didn't catch it, but i'm really sure it's not there. Is there any other simply solution?

EDIT:

BTW again, incase you wondering why i'm asking for this.... I'm going with a zone idea for my game. I want to send updates to all the entities in a zone, but only of entities in that zone (we don't need to send an update to china about the location of every person in New York). Send_skill sends the skill either to only the maker... or to EVERYONE .

Last edited by PrenceOfDarkness; 01/13/08 06:39.

"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: why no send_skill_to? or send_skill_id ? [Re: PrenceOfDarkness] #177700
01/21/08 08:15
01/21/08 08:15
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Yes, this would make sense for a zone system. I'll put it on my list.

Re: why no send_skill_to? or send_skill_id ? [Re: jcl] #177701
01/24/08 21:12
01/24/08 21:12
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
That is great to hear, I hope it's as soon as possible.

In the mean time is their anyway for me to implement such a function? I don't want to go and recreate an entire multiplayer system since I believe (when this new function is added) conitec did a GREAT job with multiplayer in A7.

I hope the update will come in the next patch or two sine it's only one more function, but hey your the boss:)


"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: why no send_skill_to? or send_skill_id ? [Re: PrenceOfDarkness] #177702
01/25/08 08:53
01/25/08 08:53
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Use the send_data functions. They are general purpose functions and you can emulate any send function through them.

Re: why no send_skill_to? or send_skill_id ? [Re: jcl] #177703
01/30/08 04:16
01/30/08 04:16
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
Okay, but seen the manual doesn't give any examples or explains it very well. Can someone maybe give a slightly better example, maybe how it can be used with entity skills.


"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: why no send_skill_to? or send_skill_id ? [Re: PrenceOfDarkness] #177704
01/30/08 08:39
01/30/08 08:39
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Code:
 
typedef struct MYDATA {
int x;
char c[20];
} MYDATA;


MYDATA mydata;

// sending data
mydata.x = 1;
strcpy(mydata.c,"Test!");
send_data_to(NULL,mydata,sizeof(MYDATA));

//receiving data
function on_client_event(void* buffer)
{
if (event_type == EVENT_DATA)
memcpy(mydata,buffer,sizeof(MYDATA));
}



That's not with entity skills - I don't want to deny you the pleasure to program your game yourself - but should give you the basic idea.

Re: why no send_skill_to? or send_skill_id ? [Re: jcl] #177705
01/31/08 05:40
01/31/08 05:40
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
thank you JCL, you should really add that to the manual, I mean you already did the work, and it would help alot of other people


"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: why no send_skill_to? or send_skill_id ? [Re: PrenceOfDarkness] #177706
02/08/08 06:43
02/08/08 06:43
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
sorry to bother you again on this subject but i finally had the chance to day to try your example. I hate to keep bothering you like this but after hours of trying to get any example of send_data_to to work I get no results at all.

First off when I try send_data_to in my server's main while loop, the client has no change in BPS or even relable or unrelable data. I tried a million things like using beeps to see where the program gets up to and I just can't figure it out what's going on. I copied and paste your example exactly (obviously assigned the send part to a while loop and when I press Q it should send which i've done a million times with all the other send functions).

Not to be a pain or anything, but did you try the example yourself? Does it work? I checked my version number and I'm up to date. Again, I've had great success with all other aspects of multiplayer with A7 but I could never ever get send_data to work, and based on how no one ever answered me in the multiplayer thread I'm starting to get the feeling no one else did either. I'm going to ask there as well to see if anyone has ever gotten send_data to work.


"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: why no send_skill_to? or send_skill_id ? [Re: PrenceOfDarkness] #177707
02/08/08 08:19
02/08/08 08:19
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
Just a quick intermission and clarification:

His code is for lite-c since c-script does not allow stucts and flexible data types.

You may be working with a lite-c version in which case ignore this but if you are trying JCL's code with c-script, it will never work.

Re: why no send_skill_to? or send_skill_id ? [Re: fastlane69] #177708
02/08/08 10:02
02/08/08 10:02
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Prence: It's possible that not many have used send_data yet. I've only tested it with small test functions like the one I've posted, but they work.

Page 1 of 3 1 2 3

Moderated by  old_bill, Tobias 

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