Coder Social home page Coder Social logo

Comments (10)

cbnolok avatar cbnolok commented on May 24, 2024 1

Maybe the best thing would be to add a ART_HEIGHT and WIDTH prop to the itemdef

from source-x.

cbnolok avatar cbnolok commented on May 24, 2024

There isn't right now, but there's also a good reason for that, because in order to get that info you have to read and parse the pixel data of art.idx and that might be time consuming... If you and others think that's necessary, we could add that to x2 by parsing art data at startup, data will be much faster to access but at the cost of slightly increasing startup time and memory used

from source-x.

falanlar avatar falanlar commented on May 24, 2024

Let's wait and see then :)

from source-x.

Tolokio avatar Tolokio commented on May 24, 2024

I can create a script for python that read that info and generate a def. (it is possible to have that lot of defs?)
[defname art_dimensions]

//art_n Width_Height

art_01 12_25
art_02 15_45
art_03 166_54

Then with a function u can split W_H format to get width and height.

from source-x.

cbnolok avatar cbnolok commented on May 24, 2024

It's possible but it will make defs in general slower, also you'd have to recreate the info when you change or update arts

from source-x.

Tolokio avatar Tolokio commented on May 24, 2024

I think third party tool could do the work. We get a "default" setting for vanilla client and a .exe or .py to allow user update it. We could load on cache from a .txt file that u can edit with notepad or use a thirdparty tool to generate a new one with updated arts. Whatever is done is fine for me. Just talking about.

what about a doswitch? Would it be fine or it is a very long list for it? Is there a max amount of lanes a dosswitch can deal with? I can try to do a .py or .exe to generate something like this meanwhile.

[function f_get_arts_dimensions]
// argn = # of the art.
doswitch <argn>
  return width_height
  return 12_14
  return 133_23
  ....

from source-x.

Tolokio avatar Tolokio commented on May 24, 2024

Do we create a console function for it?

example:
SyncroArts-> This command will note ur "art`s dimensions" into ur itemdefs scripts.

from source-x.

canerksk avatar canerksk commented on May 24, 2024

There isn't right now, but there's also a good reason for that, because in order to get that info you have to read and parse the pixel data of art.idx and that might be time consuming... If you and others think that's necessary, we could add that to x2 by parsing art data at startup, data will be much faster to access but at the cost of slightly increasing startup time and memory used


In fact, the sphere is already reading Tiledaya data as many times as the next number with SERV.TILEDATA.id.UNK19. So, even if there was a memory problem here, wouldn't Tiledata be interrupted? Also the same applies to DumpUnscriptedItems. Moreover, it does not read all the files required to open the Sphere, it will only import them. I think this would be a great job with a memory optimization in this part, but it seems a bit difficult because the development process is very slow. The to-do list in X2 is starting to get bigger.

from source-x.

xwerswoodx avatar xwerswoodx commented on May 24, 2024

Maybe the best thing would be to add a ART_HEIGHT and WIDTH prop to the itemdef

Honestly I have noticed that we can use TAG under itemdef, so we can just add TAG.ART_HEIGHT and TAG.ART_WIDTH values in core scripts.

from source-x.

Steinny avatar Steinny commented on May 24, 2024

the size don't help much, I use TAG for offsets like TAG.SIZEADJ = -7,8

from source-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.