Board index Roller Coaster Games NoLimits Coaster 2 libnolimits 1.0.0-beta

libnolimits 1.0.0-beta

All discussion relation to NoLimits Coaster 2 should be posted here. Purchase NoLimits Coaster from this page: nolimits-coaster-2-purchase-and-upgrade-links-t32524.html

Post May 23rd, 2017, 3:02 am

Posts: 57
Points on hand: 1,594.00 Points
Location: Frankfurt, Germany
libnolimits 1.0.0-beta
A NoLimits Roller Coaster 1 and 2 Library written in C++, which provides functionality to manipulate and create NoLimits 2 Parks or NoLimits 1 Tracks programmatically.

Important
This library is still beta. There is no documentation nor unit tests yet, but planned for the stable release. If you like to contribute, feel free to beta test this library, especially by opening, saving and comparing an existing park in NoLimits 2 with this library.

All non working features are listed below.

Getting started

Required tools

Required libraries
  • zlib >= 1.2.7
  • glm >= 0.9.8

If you need help installing the requirements, read the wiki article about How to install all required tools and libraries.

Installation
Clone this repository on your local machine and follow the usual cmake procedure.

$ git clone https://github.com/geforcefan/libnolimits.git
$ cd libnolimits

$ cmake .
$ make
$ make install


If you need help installing libnolimits, read the wiki article about How to install libnolimits.

Examples
There is a basic example in this repository, which will be compiled during the cmake build process. There will be more examples in the feature. Feel free to ask for specific examples.

Opening and reading park information from a *.nl2park

#include <iostream>
#include <libnolimits.h>
...
NoLimits::NoLimits2::Park *park = new NoLimits::NoLimits2::Park("Hydra.nl2park");

std::cout << "Author: " << park->getInfo()->getAuthor() << std::endl;
std::cout << "Description: " << park->getInfo()->getDescription() << std::endl;

std::cout << "Terrain height at [20, 50]: " << park->getTerrain()->getHeightAtVertex(20, 50) << std::endl;
...
park->getInfo()->setAuthor("Ercan Aky??rek");
park->save("HydraClone.nl2park");
...


Features

NoLimits 2 Park (*.nl2park)
Available chunks

  • Info
    • Weather
    • Sky
  • Terrain
    • Water
    • Layers
    • Layer intensities on terrain
    • Terrain height data
  • Scenery
  • Coaster
    • Tracks
      • Vertices
      • Segments
      • Sections
        • Brake
        • Lift
        • Station
        • Storage
        • Transport
      • Separators
      • Triggers
      • Roll points
      • 4D parameters
      • Special tracks (switch and transfer table)
    • Trains
      • Cars
    • Custom Friction
    • Track / Train / Car Colors
    • Scripts
    • Mode
    • Sections
    • Resource files
    • Supports
      • Beams
      • Free Nodes
      • Beam Nodes
      • Rail Nodes
      • Support Nodes
      • Footers
      • Prefabs

NoLimits 1 Park (*.nltrack)
Available chunks (NOT IMPLEMENTED YET)

  • Info
  • Terrain
    • Terrain height data
  • Environment
  • Train
    • Cars
  • Track
    • Vertices
    • Sections
      • Brake
      • Lift
      • Station
      • Transport
    • Catwalks
  • Supports
    • Rail Nodes
    • Free Nodes
    • Beam
    • Footers
  • Train
  • Scenery

Version independent features
  • Setting and getting terrain heights at a given XY point
  • Track interpolation, getting the matrix at a given distance on track (NOT IMPLEMENTED)
  • "NL2 Spline export" conform CSV generation (NOT IMPLEMENTED)
  • Creating or modifiying existing tracks

Contribution
Feel free to fork this project, implement features, improve the code quality, fixing bugs, etc. Just request a push, the core team will review the code and decide whether it will merged to the master branch or not.

Core team

  • Ercan "geforcefan" Aky??rek, GitHub

License information
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Repository
https://github.com/geforcefan/libnolimits
Last edited by geforcefan on May 25th, 2017, 3:53 pm, edited 1 time in total.

Post May 25th, 2017, 3:25 am
herman116 User avatar
Premium Member
Premium Member

Posts: 636
Points on hand: 7,471.00 Points
Location: The Netherlands
Looks nice! Are you also planning om making some software that uses this library?

Post May 25th, 2017, 1:38 pm

Posts: 57
Points on hand: 1,594.00 Points
Location: Frankfurt, Germany
Yes, as soon as I have released a RC version, I am going to start coding an universal app of NoLimits2 tools such as exporting the terrain, csv export of the track for non professional owner, integrated and reengineered version of fvd++ with new gui, etc.

I am open to your suggestions and interested in any kind of cooperation.


Return to NoLimits Coaster 2