Sprite Limits (Other)
Moderator: TTDPatch Moderators
Re: Sprite Limits (Other)
Done! See below;
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Sprite Limits (Other)
According to the debug listing, there are "GRF conflicts" between a couple of ECS vector .grfs, hence they don´t get activated.
Maybe asking about that problem in George´s ECS thread would be appropriate?
regards
Michael
Maybe asking about that problem in George´s ECS thread would be appropriate?
regards
Michael
Re: Sprite Limits (Other)
Hi SAC. I see you have other industry files besides George's vectors. Try disabling all other industry tiles with a # before their lines in your newgrf.cfg.SAC wrote:Done! See below;
Those ttdpatch.cfg.0001 etc. are ok. They are backups created by ttdpc. Simply delete them if they are a bother to you.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Sprite Limits (Other)
The odd thing is that I have them listed in the same order as "wallyweb", and he seems to get them to work with no problems at all!michael blunck wrote:According to the debug listing, there are "GRF conflicts" between a couple of ECS vector .grfs, hence they don´t get activated.
Maybe asking about that problem in George´s ECS thread would be appropriate?
regards
Michael
They are listed in my newgrf.cfg, but they are not activated in game. Even if I disable all other .grf's, I still cannot use more than those three mentioned; ECS Town, Basic & Machinery!wallyweb wrote:Hi SAC. I see you have other industry files besides George's vectors. Try disabling all other industry tiles with a # before their lines in your newgrf.cfg.SAC wrote:Done! See below;
Those ttdpatch.cfg.0001 etc. are ok. They are backups created by ttdpc. Simply delete them if they are a bother to you.
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Re: Sprite Limits (Other)
They must be disabled such that they do not appear in the status window, even with a red flag.SAC wrote:They are listed in my newgrf.cfg, but they are not activated in game. Even if I disable all other .grf's, I still cannot use more than those three mentioned; ECS Town, Basic & Machinery!wallyweb wrote:Hi SAC. I see you have other industry files besides George's vectors. Try disabling all other industry tiles with a # before their lines in your newgrf.cfg.SAC wrote:Done! See below;
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- George
- Tycoon
- Posts: 4363
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: Sprite Limits (Other)
George tries his hands on industries, houses and RVs And my plan is to increase the number of spriteswallyweb wrote:True ... We would just have to make sure that George does not try his hand at Ships, Planes and Houses. Also, if it were possible to create a separate "Industies" or "Stations" feature, then "Others" could probably be reduced as well.eis_os wrote:PS: Ohh, and what feature would you like to cut sprites from? George happily fills the full road vehicle count...
- George
- Tycoon
- Posts: 4363
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: Sprite Limits (Other)
They are not long. I plan to make them longermichael blunck wrote: i.e. not sprites of excessively long var2 chains (Hi, George ).
And they are documented with action C. I suppose it makes the code readable
Last edited by George on 28 Nov 2008 06:31, edited 1 time in total.
Re: Sprite Limits (Other)
Hmm ... We seem to be out of rooms ... Do you have a reservation?George wrote:George tries his hands on industries, houses and RVs And my plan is to increase the number of sprites
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- George
- Tycoon
- Posts: 4363
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: Sprite Limits (Other)
According to the current speed - yes, about two yearswallyweb wrote:Hmm ... We seem to be out of rooms ... Do you have a reservation?George wrote:George tries his hands on industries, houses and RVs And my plan is to increase the number of sprites
Re: Sprite Limits (Other)
Good ... One of our best engineers is already at work adding more rooms to the Hotel Sprite Blocks.George wrote:According to the current speed - yes, about two years
eis_os wrote:I already created a local branch to write down some ideas for grf specific sprite blocks, I hope I can add some Compiler defines to enable/disable this and commit the stuff to trunk..
eis_os wrote: Status report:
+ removed most caching function with a generic fetchsprite function
+ started to write a new grf loader (for TTD sprites)
+ find some import structures for sprite sorting
+ raw new DrawSprite function
Still to fix:
Sprite Sorting routines
Vehicle Bounding Box Functions
...
Add old Spritelimit functions for testing again
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Sprite Limits (Other)
Status report:
+ added experimental features switch
+ added the necessary fragment and relocations for sprite sorting
+ added a new AddGroundSprite, AddSprite
It's not possible to keep the spritelimit blocks of the old system for debugging the new code,
so before the code can be tested all necessary pieces (at least so vehicle grfs can be loaded) have to be finished.
Todos:
- AddLinked and AddRelative Sprites
- Drawing sortedsprites
- Vehicle Bounding Box Functions
- GRF Loading and activating (TTDPatch/TTD)
- Add tests so only real sprites can be drawn, this should avoid drawing random memory blocks
- Fix canals as sample for action based sprite drawing
- Find someone who fixes all other features.
After TTDPatch works again:
Go back to the sprite sorting routines and rewrite the GroundSprites to be normal Sprites and sort them
+ added experimental features switch
+ added the necessary fragment and relocations for sprite sorting
+ added a new AddGroundSprite, AddSprite
It's not possible to keep the spritelimit blocks of the old system for debugging the new code,
so before the code can be tested all necessary pieces (at least so vehicle grfs can be loaded) have to be finished.
Todos:
- AddLinked and AddRelative Sprites
- Drawing sortedsprites
- Vehicle Bounding Box Functions
- GRF Loading and activating (TTDPatch/TTD)
- Add tests so only real sprites can be drawn, this should avoid drawing random memory blocks
- Fix canals as sample for action based sprite drawing
- Find someone who fixes all other features.
After TTDPatch works again:
Go back to the sprite sorting routines and rewrite the GroundSprites to be normal Sprites and sort them
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Sprite Limits (Other)
Oskar, what´s the aim of your undertaking, in terms of future sprite limits?eis_os wrote:Status report [...]
regards
Michael
Re: Sprite Limits (Other)
The goal:
4900 Sprites of TTD without doing caching (swapin/swapout). The GRF is fully loaded into memory at once.
11k Other Sprites, (GRM ones, for recolouring and such tasks)
Action 1: 11k Sprites per individual GRF.
All Sprites in memory use the same layout -> GRF Author helper can edit every real sprite and only has one location.
This means that Action1 sprites aren't feature based any more but they are GRF local. A reason why the rewrite is so complicate, instead of tracking simply what feature a sprite has, the Action3 to GRF Spritelst pointer need to be tracked.
Currently TTD(Patch) caches additional the sprite header for sorting, because TTD sprites may not be loaded currently, this will be removed completely...
If you need more then 11k sprites you can split the grf. You can't have more then 11k action1 sprites currently per feature anyway, so I don't think that is much of a problem
Generally as TTD doesn't any caching any more after the rewrite, the GRF Memory could be allocated differently under Windows and changed at runtime. (But the Action system would need tweaks)
4900 Sprites of TTD without doing caching (swapin/swapout). The GRF is fully loaded into memory at once.
11k Other Sprites, (GRM ones, for recolouring and such tasks)
Action 1: 11k Sprites per individual GRF.
All Sprites in memory use the same layout -> GRF Author helper can edit every real sprite and only has one location.
This means that Action1 sprites aren't feature based any more but they are GRF local. A reason why the rewrite is so complicate, instead of tracking simply what feature a sprite has, the Action3 to GRF Spritelst pointer need to be tracked.
Currently TTD(Patch) caches additional the sprite header for sorting, because TTD sprites may not be loaded currently, this will be removed completely...
If you need more then 11k sprites you can split the grf. You can't have more then 11k action1 sprites currently per feature anyway, so I don't think that is much of a problem
Generally as TTD doesn't any caching any more after the rewrite, the GRF Memory could be allocated differently under Windows and changed at runtime. (But the Action system would need tweaks)
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Re: Sprite Limits (Other)
Hmm, tried that too, but to no avail! I'm wondering if it could be a patch setting of mine perhaps, because even if I load the station sets I'm using, I should be well below the maximum limits, so all in all there shouldn't be a problem.wallyweb wrote:They must be disabled such that they do not appear in the status window, even with a red flag.
I do not understand this!
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Simuscape | Visual Studio | INFRA Diary
INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
Re: Sprite Limits (Other)
Only if miscmods.smallspritelimit would be enabled, can you please backup your ttdpatch.cfg and try a default one?
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Sprite Limits (Other)
How about GRM in general? Unfortunately, this feature isn´t used much at the time being, yet it´s one of the most interesting and helpful one (see e.g. discussion on German tt-forums about .grf incompatibilities). ATM, I´m going to equip all my .grfs under development with GRM.eis_os wrote:[...]
11k Other Sprites, (GRM ones, for recolouring and such tasks)
Action 1: 11k Sprites per individual GRF.
[...]
Now it seems, things will be changing with regards to GRM?
@Oskar
SAC´s miscmods and miscmods2 are both set to "off".
regards
Michael
Re: Sprite Limits (Other)
Sorry but I can't follow you. Since when do you allocate action1 sprites with GRM?
You only use GRM for sprite allocation if you need a sprite in the default TTD sprite space (non-feature based sprite, recolouring as example) => Action5. This will be the 11k sprites in the other block as before and will be allocated exactly as before. (From a GRF standpoint) Or what other use do you mean?
You only use GRM for sprite allocation if you need a sprite in the default TTD sprite space (non-feature based sprite, recolouring as example) => Action5. This will be the 11k sprites in the other block as before and will be allocated exactly as before. (From a GRF standpoint) Or what other use do you mean?
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
-
- Tycoon
- Posts: 5948
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Sprite Limits (Other)
Hehe, sorry. My fault.eis_os wrote:Sorry but I can't follow you. Since when do you allocate action1 sprites with GRM? [...]
regards
Michael
Re: Sprite Limits (Other)
Hi SAC,SAC wrote:Hmm, tried that too, but to no avail! I'm wondering if it could be a patch setting of mine perhaps, because even if I load the station sets I'm using, I should be well below the maximum limits, so all in all there shouldn't be a problem.
I do not understand this!
I made and attached a newgrf.cfg from your debug file.
Open the file in your Notepad and follow the instructions at the top of the file.
- Attachments
-
- newgrf.cfg
- (1.52 KiB) Downloaded 102 times
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- George
- Tycoon
- Posts: 4363
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: Sprite Limits (Other)
I have 49 sprites but I plan to have much moremichael blunck wrote:How about GRM in general? Unfortunately, this feature isn´t used much at the time being,
Who is online
Users browsing this forum: No registered users and 22 guests