Potatütata
Member
Hello,
as stated in the title i get a weird error which is mentioned 3 times on google.
ERROR!!! :: ############################################################################################
FATAL ERROR in
action number 1
of PreCreate Event
for object obj_loading_icon:
buffer_create: Illegal size 0
############################################################################################
I have traced back the line of code which causes this error:
All the variables are set up correctly and the code worked fine until today. Everything worked, but then i added some code elsewhere (i dont know what i added before this occured) and now every time i connect to the server it throws this error. The obj_loading_icon has no code in it btw. it is only a object with a sprite that is animated. When i delete the object "obj_loading_icon" the error is thrown from a different object. It sure seems like a bug so i dont think that anyone can help me here. I have another script which sends the player data to the server every fram and when i commet the error causing line out everything works fine and the player data is sent to the server normally without any issue. I still use GameMaker 1.4.9999 which may be the error (i currently cant afford the new GM ) The error also only occures ~29/30 times. Sometimes i can join without issue :O
Thanks for reading and maybe you have an idea what i can still try
as stated in the title i get a weird error which is mentioned 3 times on google.
ERROR!!! :: ############################################################################################
FATAL ERROR in
action number 1
of PreCreate Event
for object obj_loading_icon:
buffer_create: Illegal size 0
############################################################################################
I have traced back the line of code which causes this error:
GML:
buffer_seek(buffer, buffer_seek_start, 0);
buffer_write(buffer, buffer_u8, 1);
// if i write a string/text into the buffer the error occures when i send the packet
buffer_write(buffer, buffer_text, global.player_name);
show_debug_message(buffer_tell(buffer));
// this line causes the error when a string is added. Without the string it workes fine
network_send_packet(socket, buffer, buffer_tell(buffer));
Thanks for reading and maybe you have an idea what i can still try