02-23-2016, 03:45 AM
What's the level of interest for something like this?:
![[Image: CBotInclude.png?dl=1]](https://www.dropbox.com/s/4khpx1xw4nz8tyf/CBotInclude.png?dl=1)
Path defaults to ai/ but also uses %cat%, %chap%, and %lvl%
codes, plus two others for the players program folders.
It uses current working directory if Colobot is not there.
Includes error codes, #pragma once, and some foolproofing.
It works exactly like CBotToken::CompileTokens() + file input.
Has it's own class with a simple interface, changes to the game are minimal.
![[Image: CBotInclude.png?dl=1]](https://www.dropbox.com/s/4khpx1xw4nz8tyf/CBotInclude.png?dl=1)
Path defaults to ai/ but also uses %cat%, %chap%, and %lvl%
codes, plus two others for the players program folders.
It uses current working directory if Colobot is not there.
Includes error codes, #pragma once, and some foolproofing.
It works exactly like CBotToken::CompileTokens() + file input.
Has it's own class with a simple interface, changes to the game are minimal.