Giter Site home page Giter Site logo

lapisitemeditor's Introduction

LapisItemEditor

This is an item editor for OTB files written in C# using Avalonia. The editor supports the version 11+ file format (appearances.dat & LZMA-compressed sprites).

Currently, the Main functionality of this application is to create items.otb files.


There is limited support for changing the default attributes of items, but this functionality is only partially implented and likely buggy.

If you would like to try to improve/implement changing of item attributes, good places to start are

./LapisItemEditor/ViewModels/Main/ItemPropertiesViewModel.cs
./LapisItemEditor/Views/Main/ItemPropertiesView.axaml

There is partial work on support for the older file format (dat & spr), but it is not finished. It can be found under ./Backend/Tibia7.

Credits

Small parts of this repository are copied from the following projects:

Also, parts of this repository are inspired by code in the above repositories.

Compiling

  1. Open ./LapisItemEditor.sln in Visual Studio.
  2. In the solution explorer, right-click the LapisItemEditor project and select Set as Startup Project.
  3. Build/Run.

Usage

  1. Start the application
  2. Select assets folder
  3. Select OTB file
  4. (optional) Click "Create missing items"
  5. (optional) Click "Import item names from file". Item name file must be of format:
[100] void
[3457] a shovel
[35523] an exotic amulet
[...]
  1. Click "Save items.otb"

Configuration

Major otb version & client versions can be specified in data/config.json:

{
    "clientVersions": [
        { "name": "12.71", "version": 1271 },
        { "name": "12.72", "version": 1272 },
        { "name": "12.81", "version": 1281 }
    ],
    "majorOtbVersions": [1, 2, 3]
}

Dependencies

Instructions for generating proto files

  1. clone Protod3

  2. Get client.exe from <tibia_dir>/packages/Tibia/bin/client.exe

  3. Run python3 src/protod.py client.exe

  4. Add syntax = "proto2"; as the first line in each .proto file.

  5. To generate C# bindings, place .proto files in ./in. Then:

    protoc -I=./in --csharp_out=./out ./in/appearances.proto
    protoc -I=./in --csharp_out=./out ./in/map.proto
    protoc -I=./in --csharp_out=./out ./in/shared.proto
    

lapisitemeditor's People

Contributors

giuinktse7 avatar

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.