alexrazor1337 / mta-resource-tool Goto Github PK
View Code? Open in Web Editor NEWTool written on Python to help you work with MTA resources.
License: Apache License 2.0
Tool written on Python to help you work with MTA resources.
License: Apache License 2.0
Update documentation, add more examples.
3 base settings for start:
About implementation:
Preferred way of storing and loading is JSON.
When starting a script for the first time it creates settings file with default value. At the next starts this file would be checked and loaded.
"file_name: model_id"
e.g ("building: 13232"
)World.txd: "World"
When generating meta for resource it automatically adds
<file src="meta-generated.xml"/>
Add documentation about how to use this script.
Steps to reproduce:
python meta.py .
<script src"..." />
outputMake option to override meta file with generated one #6 . It's should ask the user every time if it's enabled for safety reasons.
Some resources need "oop" in their meta(#4), ACL rights(ACL request) and it can be useful for versioning, saving description and etc.
The idea is to have a file something like "resource.json" in resource folder which will contain this settings, example:
{
"oop": true,
"rights": {
"general.ModifyOtherObjects": true,
"function.startResource": true,
}
}
Tool to generate meta.xml
It should parse all files inside a specified folder and add them to meta.xml unless they had restricted file type (should be specified in settings from #1 ).
There are must be a set(sets?) of rules how to determine is it clientside file or serverside.
Variants:
In any way, a case may arise when it is not possible to set the type. (no prefix, no directory, all functions are shared). So ability to set it manually is required.
Automatically add exported functions to generated meta.xml (#4)
To declare that function is exported it should be stated in function header:
function foo() --exported
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.