NoCAB - Bleeding Edge edition Version 2.2a4
Moderator: OpenTTD Developers
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Hi,
after fighting with various errors like "Your script made an error: the index "ai_et_engine_available" does not exist" and add the compatibility lines from the compat1.1.nut
file to the compat1.2.nut file (the AI uses 1.2 API - but have serious problems with it .....) the AI runs very well and nice ...
But after every load of an savegame the AI crashes first time ... then its run nice again ..
Use actual HardGame version .. many NewGFXs ... Pictures+Save file added.
Regards
R-TEAM
after fighting with various errors like "Your script made an error: the index "ai_et_engine_available" does not exist" and add the compatibility lines from the compat1.1.nut
file to the compat1.2.nut file (the AI uses 1.2 API - but have serious problems with it .....) the AI runs very well and nice ...
But after every load of an savegame the AI crashes first time ... then its run nice again ..
Use actual HardGame version .. many NewGFXs ... Pictures+Save file added.
Regards
R-TEAM
- Attachments
-
- NoCAB-BE1.png
- (461.8 KiB) Downloaded 4 times
-
- NoCAB-BE2.png
- (453.22 KiB) Downloaded 4 times
-
- No-Way Trans&Co AG, 16. Jul 1943.sav
- (1.17 MiB) Downloaded 290 times
This AI is not activating
Oh no.... I think this is a bug, and
It says " AI_ET_ENGINE_AVAILABLE" Does not Exist.
How can I fix this?
It says " AI_ET_ENGINE_AVAILABLE" Does not Exist.
How can I fix this?
- Attachments
-
- Gordon & Co.의 게임 (2004.02.01).png
- (32 KiB) Downloaded 3 times
Re: NoCAB - Bleeding Edge edition Version 2.2a4
I'm unsure your "How can i fix this" is really a question...
Anyway, if you were indeed really wishing the solve, here's howto fix "this" (only this bug)
And if you don't use linux, wait for someone to gave the same command using a tool like sed for your system.
Anyway, if you were indeed really wishing the solve, here's howto fix "this" (only this bug)
Code: Select all
sed 's/AI_ET_/ET_/' -i ConnectionManager.nut
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Assuming NoCAB does set it's API version apporately the compat.nut layer should provide the old enum constants. Did you correctly install OpenTTD with all its files, and also did not place any files from a newer/older version in your OpenTTD directory in user documents?
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: NoCAB - Bleeding Edge edition Version 2.2a4
The error pic show nocab loading 1.2 API, hence the error ; but i wasn't sure if just changing API to 1.1 wouldn't let nocab fail later trying to call an 1.2 API function.
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Since NoCAB can be such a well performing AI if it doesn't crash I had a go at fixing the main problems.
1. Crashing when saving. Since it stores a lot of info NoCAB often ran out of time, especially on larger maps, when saving.
Since I think staying alive is more important I changed it's save logic to stop saving it's connections as soon as it detects it's getting close to running out of time.
Of course it will not know some of the connections after loading a save game but at least it will not crash and keep running the current game.
2. It was not taking the map borders into consideration when checking available spots near towns. In certain cases when a town was near the map border it could take very long (about a year) to decide on available tiles.
3. On large maps with a high amount of towns and industries it could cause OpenTTD to run out of memory causing it to crash. The cause of this was that NoCAB tried to store data for all towns and industries. I changed this to limit the towns to the top 1000 towns with the highest population and a random choice of a maximum of 2000 industries.
4. Loading a savegame could cause a crash because certain data needed to determine the route travel time wasn't saved. We fixed this by recomputing certain data after loading a savegame.
Details about all changes can be found in my forked repository.
https://bitbucket.org/jacobb/nocab/overview
To install just download the repository and copy the whole folder to your ai folder.
The original coder of NoCAB is welcome to use as much of my code as he wants.
1. Crashing when saving. Since it stores a lot of info NoCAB often ran out of time, especially on larger maps, when saving.
Since I think staying alive is more important I changed it's save logic to stop saving it's connections as soon as it detects it's getting close to running out of time.
Of course it will not know some of the connections after loading a save game but at least it will not crash and keep running the current game.
2. It was not taking the map borders into consideration when checking available spots near towns. In certain cases when a town was near the map border it could take very long (about a year) to decide on available tiles.
3. On large maps with a high amount of towns and industries it could cause OpenTTD to run out of memory causing it to crash. The cause of this was that NoCAB tried to store data for all towns and industries. I changed this to limit the towns to the top 1000 towns with the highest population and a random choice of a maximum of 2000 industries.
4. Loading a savegame could cause a crash because certain data needed to determine the route travel time wasn't saved. We fixed this by recomputing certain data after loading a savegame.
Details about all changes can be found in my forked repository.
https://bitbucket.org/jacobb/nocab/overview
To install just download the repository and copy the whole folder to your ai folder.
The original coder of NoCAB is welcome to use as much of my code as he wants.
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Great that you stepped in to fix things.
One trick you might consider is to prepare the save data beforehand, ie after a significant change. That way, you'll have the save data ready and just have to point to it and say "save that".
One trick you might consider is to prepare the save data beforehand, ie after a significant change. That way, you'll have the save data ready and just have to point to it and say "save that".
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Yes that is certainly one of the things I had in mind too but I thought it better to get something that is working (as far as I know) published then to wait until everything that can be improved is done. Even better would be if it's possible to get rid of or reduce all that path data that gets saved but currently it's needed for computing the time a vehicle takes to go from one end of a route to the other.Alberth wrote:One trick you might consider is to prepare the save data beforehand, ie after a significant change. That way, you'll have the save data ready and just have to point to it and say "save that".
Re: NoCAB - Bleeding Edge edition Version 2.2a4
It sounds like data you can recompute after loading, or even anywhen you need it.
A possible alternative could be to keep such path data but for one route (or a few). When you want to review some vehicles, first recompute that data, run the analysis, and let go of the data when you no longer need it (vehicles are performing satisfactory).
A possible alternative could be to keep such path data but for one route (or a few). When you want to review some vehicles, first recompute that data, run the analysis, and let go of the data when you no longer need it (vehicles are performing satisfactory).
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Made some more improvements and fixes though no changes in the save/load code yet.
Most changes are related to better train handling.
Besides that there are improvements in
I'm open to suggestions how I should name it. Currently I use WormCAB but I could use NoCAB Fixed or something like that too since the main purpose was fixing it not making further improvements or changes.
Most changes are related to better train handling.
Besides that there are improvements in
- Closing connections where vehicles are now sold
- replacing old vehicles with new ones now also works for trains, including refitting.
- replacing vehicles even works if we are at the maximum allowed amount because we sell first
- Tweaked road and rail pathfinding costs. It should use less tunnels and bridges and up to a max length of 15. It should also favor reusing roads a little more.
- Lots of other changes to improve crash safety.
I'm open to suggestions how I should name it. Currently I use WormCAB but I could use NoCAB Fixed or something like that too since the main purpose was fixing it not making further improvements or changes.
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Hi.
I don't know whether you are active or not, but this was the first time I tried playing with AI's again and i thought why not try NoCAB Bleeding Edge. It gives me an error every time I try to reload it.
It has been giving the error since the first load attempt.
Here's a screenshot: Hope this helps.
Have a good game.
I don't know whether you are active or not, but this was the first time I tried playing with AI's again and i thought why not try NoCAB Bleeding Edge. It gives me an error every time I try to reload it.
It has been giving the error since the first load attempt.
Here's a screenshot: Hope this helps.
Have a good game.
Re: NoCAB - Bleeding Edge edition Version 2.2a4
I think you can safely assume that NoCAB and NoCAB Bleeding Edge are not being maintained anymore. That's why I made my fork NoNoCAB which hopefully fixes most of the problems and bugs of the original.
You are welcome to try NoNoCAB and report problems there if you encounter them
You are welcome to try NoNoCAB and report problems there if you encounter them

Re: NoCAB - Bleeding Edge edition Version 2.2a4
That's exactly the same error as the one two posts above you, and the same answer applies too.
Who is online
Users browsing this forum: No registered users and 17 guests