LEGO® Universe Nuevamente Imaginado
Menu
  • Inicio
  • Descargar
    • Música
  • Foros
  • Info
    • World
    • FAQ
    • Objects
  • Tutorial
    • Compile in Visual Studio
    • Servidor 0.3
    • Servidor 0.4 (Pre-2)
    • Servidor 0.5.1
  • Inicio
  • Descargar
    • Música
  • Foros
  • Info
    • World
    • FAQ
    • Objects
  • Tutorial
    • Compile in Visual Studio
    • Servidor 0.3
    • Servidor 0.4 (Pre-2)
    • Servidor 0.5.1

Respuesta a: LUNI Research


Inicio › Foros › General Discussion › LUNI Research › Respuesta a: LUNI Research

agosto 31, 2015 a las 5:39 am #431
Xiphoseer
Moderador

If you mean LDF Key/Values in general, Appendix A of the docs explains that quite well.

[L:4] - number of keys
    [L:1] - key length in bytes
    [L:V] - key, wchar
    [L:1] - data type (see below)
    [L:according to data type] - data

Is the basic structure of a LDF part.

Now there is a list of data types:

0 : String (variable wstring?)
1 : s32
3 : Float (32bit, signed)
5 : u32
7 : Boolean (8bit, 0 or 1)
8 : s64
9 : s64, Used only for (object?) IDs?
13 : bytes?

for each key/value pair that you want to encode, just write
– the length of your key string *2 (bytelength) in one byte
– the key itself with wchar_t’s / as wstring
– the data type as 1 byte
– the data itself

for the data itself, just write them out with the specified length or for variable length data types, prepend the data with a u32/unsigned long length specifier.

Comments are currently closed.

Idioma Preferido


  • English (en) English (en)
  • Deutsch (de) Deutsch (de)
  • Español (es) Español (es)

Busca en los Foros


Los Últimos Temas


  • Happy New Year
  • FORUMS CLOSED

Foros

  • General Discussion

Otros Sitios

  • LU Server Projects Github online
  • Community Discord online
  • buscar el LUNIverso

    Tenga en cuenta

    El Grupo LEGO no ha aceptado o autorizado el funcionamiento de este juego y no es responsable de los problemas de seguridad en relación con la operación de este juego.

    © 2015-2021 Proyecto LUNI™ Servidor

    Organizada por TimTech Software