Gustavo6046 wrote:This isn't Python, after all
Feralidragon wrote:1 - Use the same principle behind hard drives:
They store the bytes in sectors, but each sector has a fixed number of bytes, so a file will just be spread across sectors and you have just a few sectors with a lot of bytes stored, with the last one just having some unused bytes, which is OK since each sector doesn't have too many of them for the waste to make a big difference, unless you have a lot of tiny files, which generally isn't the case.
UScript-wise, you can represent each "sector" as an Object, with a property as an array of floats of a specific length.
This length is left up to you to decide, as well as how you link the sectors together (linked list, tree, both, something else).
PrinceOfFunky wrote:Would the input data be pre-processed or it will be just images from the viewport?
EDIT: Nvm I guess they'll not be images since you're gonna use uscript only.
But then I wonder something, how will you let the bots recognize the level geometry without even using at least DLLs?
res = New(class'FloatList'); // from my float sectors library
foreach VisibleActors(class'Pawn', P)
PI = PawnInputInfo(P); // a function that makes an input list from a pawn
res = Conveyor.activate(class'FloatList'.static.Concatenate(res, PI));
PI.Destroy(); // where's my garbage collector ;_;
Does this even compile? AFAIR neither Tick() nor Destroy() exist for Objects. (See also my question Opposite of New()?)Gustavo6046 wrote:I hope this works, but I'm half asleep. I'll verify it tomorrow! Check it right below:
papercoffee wrote:What did you fix and why should we download it???
Gustavo6046 wrote:I will upload them here so I can pick them up in a future PC since this one's crappy screen broke
Barbie wrote:Also I remember a problem with the name of objects that are created by New() without a given parent: the names will follow the structure of "ObjName0", "ObjName0.ObjName1", "ObjName0.ObjName1.ObjName2", ... and this will crash when the length of 1023 is exceed (see EDIT section of this posting).
obj = new (none) class'MyObject';
obj = new (Outer) class'MyObject';
Carbon wrote:papercoffee wrote:What did you fix and why should we download it???
Not sure our downloading was the purpose.Gustavo6046 wrote:I will upload them here so I can pick them up in a future PC since this one's crappy screen broke
Users browsing this forum: No registered users and 1 guest