Author Topic: Buffer overrun  (Read 981 times)

I get a buffer overrun error when loading my server with a playertype add-on I made. Some searching brought me to this this (I know it's old but so is blockland), and after shortening the sequence paths in the player datablock it stopped giving me the error. Still, I want to add plenty of animations to my playertype so I would surely run into the same problem. Is there another way, or can this be fixed?

Erm.. that "this" is just a link to the web address "this"


Can you post the code, specifically the sequence paths?

This is what is working:
Code: [Select]
datablock TSShapeConstructor(DunGenPlayer_Dts)
{
baseShape  = "config/p/DunGenPlayer.dts";
sequence0  = "config/p/DunGenPlayer_root.dsq root";

sequence1  = "config/p/DunGenPlayer_run.dsq run";
sequence2  = "config/p/DunGenPlayer_fall.dsq walk"; // not even used in the playertype afaik
sequence3  = "config/p/DunGenPlayer_back.dsq back";
sequence4  = "config/p/DunGenPlayer_side.dsq side";

sequence5  = "config/p/DunGenPlayer_crouch.dsq crouch";
sequence6  = "config/p/DunGenPlayer_crouchrun.dsq crouchRun";
sequence7  = "config/p/DunGenPlayer_crouchback.dsq crouchBack";
sequence8  = "config/p/DunGenPlayer_crouchrun.dsq crouchSide";

sequence9  = "config/p/DunGenPlayer_look.dsq look";
sequence10 = "config/p/DunGenPlayer_headside.dsq headside";

sequence11 = "config/p/DunGenPlayer_jump.dsq jump";
sequence12 = "config/p/DunGenPlayer_jump.dsq standjump";
sequence13 = "config/p/DunGenPlayer_fall.dsq fall";

sequence14 = "config/p/DunGenPlayer_armattack.dsq armAttack";
sequence15 = "config/p/DunGenPlayer_armreadyright.dsq armReadyRight";

sequence16 = "config/p/DunGenPlayer_death1.dsq death1";

sequence17 = "config/p/DunGenPlayer_sit.dsq sit";

sequence18 = "config/p/DunGenPlayer_activate.dsq activate";
sequence19 = "config/p/DunGenPlayer_activate2.dsq activate2";
};

They were originally in "Add-Ons/GameMode_DunGen/data/players/Player_DunGen". According to the link I posted it was improved in a later version TGE.

They were originally in "Add-Ons/GameMode_DunGen/data/players/Player_DunGen".

Change all the paths to relative paths:
Code: [Select]
./data/players/Player_DunGen/MY_FILE.dsq

That's what they were, but "Before sending it over the wire, the engine expands "./jump_around.dsq jump_around" into something like "starter.fps/data/shapes/characters/jump_around.dsq jump_around"".

Yes, and there is a 256 byte limit for networking things so that makes sense.

Try getting rid of /data/players and just placing all the files directly in the add-on folder.

I should be okay for a while, this is how I'm doing it:
Code: [Select]
    baseShape = "base/p/1/1.dts";
    sequence0 = "base/p/1/1_1.dts root";
    sequence1 = "base/p/1/1_2.dts run";
    etc..

But I hope it can be addressed in the engine..