MicroCity NotesMicroCity Notes
Notes
  • MicroCity Web
  • MicroCity Desktop

    • 1. MicroCity Introduction
    • 2. Getting Started with MicroCity
    • 3. User Interface
    • 4. Script Writing
  • GitHub

    • MicroCity Desktop Repository
    • MicroCity Web Repository
    • MicroCity Web Online Environment
  • 简体中文
  • English
Notes
  • MicroCity Web
  • MicroCity Desktop

    • 1. MicroCity Introduction
    • 2. Getting Started with MicroCity
    • 3. User Interface
    • 4. Script Writing
  • GitHub

    • MicroCity Desktop Repository
    • MicroCity Web Repository
    • MicroCity Web Online Environment
  • 简体中文
  • English
  • Table of Contents
  • General Knowledge

    • Quick Start with Lua Language
    • Version Information of MicroCity
    • Advancement of Simulation Time
    • Object-Oriented Programming
    • Tools
  • MicroCity

    • Visualization of Results
    • Operating Networks
    • Model Solving
  • MicroCityWeb

    • User Interface Overview
    • 3D Scene
    • 3D Objects
    • Discrete Event Simulation and Program Control
    • Mixed integer programming
    • Debugging
  • Concepts

    • Ideas for Warehouse Automation Simulation
    • General Drawing Code
    • Port AGV Service Process 3D Simulation Approach

Tools

Tools that may come in handy

Third-party Tools

Including software, websites, etc.

  • MapShaper Map editor. It can edit .geojson files and export them as .shp files.
  • Three.js Editor Online 3D object editor for Three.js.

External Functions

Some external functions for MicroCity Web

Instructions

It is recommended to import functions online to ensure the use of the latest version of functions. You can also choose to download them locally and then upload for use.

Online import example

print('Downloading dependency library to virtual disk...')
os.upload('https://www.zhhuu.top/ModelResource/libs/file_name.lua')
print('Download complete')

Importing functions

If the function file name is abc.lua, importing the function completes the process.

require("abc")

Function List

Mostly homemade functions.

Since the files are all hosted on GitHub Pages, online importing might be slower. You can opt to download them locally and then upload for use.

The list of code files provided on this site is shown in ModelResource/libs, and the list below are all files from the ModelResource repository.

NameDescriptionLink
HistogramUsed to draw histogramsModelResource/libs/Histogram.lua
SubplotDraw subplots when drawing multiple graphsModelResource/libs/Subplot.lua
tablestrConvert table to stringModelResource/libs/tablestr.lua
setpointSet display points at specified coordinatesModelResource/libs/setpoint.lua

🔨 Continuously updating...

This post is translated using ChatGPT, please feedback if any omissions.

Last Updated:
Contributors: huuhghhgyg
Prev
Object-Oriented Programming