this game basic problems and someone deleting my questions about making this better wtf
Moderator: Forum Moderators
-
- Posts: 67
- Joined: November 17th, 2023, 7:33 pm
this game basic problems and someone deleting my questions about making this better wtf
deleted im the only one that cared
theres nobody that takes care of this project
and many people dont seem to care about making this game better
theres nobody that takes care of this project
and many people dont seem to care about making this game better
Last edited by needmoreplayers on January 9th, 2024, 8:06 pm, edited 11 times in total.
- Pentarctagon
- Project Manager
- Posts: 5567
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: bug: takes a really long time for a map / game to be created
If add-ons are not installing for you, then most likely that means its an issue with your system - not enough disk space available, antivirus is preventing Wesnoth from writing the files, etc.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
-
- Posts: 67
- Joined: November 17th, 2023, 7:33 pm
addons so broke, hopefully some genius coder fixing it
wesnoth + addons code problems never fixed yet
1 When you have a lot of add-ons reading and creating the cache can take quite some time,
2 also it can happen that a particular addon is slow to load (because it's written badly)
wesnoth code problems never fixed yet:
3 wesnoth code problems: usually it shouldn't try to reload the cache when joining a game (only when you join the sever) unless that game uses a custom #define so with which games does it happen when you try to join them?
hopefully some coders (or whoever are the main coders) of this game is on it with these addon related problems
these are commonly known and experienced problems by many people
addon problem #16 - "reading files and creating cache" shows forever after installed addons
addon problem #17 - another addon problem in multiplayer is it often doesn't show all missing addons when hovering over 'i' icon
wesnoth chat feature problem - also do all pms/whispers in game disappear if you close and open wesnoth agian?
happened just now also, happened other times in past also (i think cant remember)
1 When you have a lot of add-ons reading and creating the cache can take quite some time,
2 also it can happen that a particular addon is slow to load (because it's written badly)
wesnoth code problems never fixed yet:
3 wesnoth code problems: usually it shouldn't try to reload the cache when joining a game (only when you join the sever) unless that game uses a custom #define so with which games does it happen when you try to join them?
hopefully some coders (or whoever are the main coders) of this game is on it with these addon related problems
these are commonly known and experienced problems by many people
addon problem #16 - "reading files and creating cache" shows forever after installed addons
- related addon problems just now
just now installed some addons for game someone was hosting
closed and reopened wesnoth
and it was on "reading files and creating cache" forever
it took forever
had to close and reopen wesnoth mutiple times
dont know whats with this thing
so then i let it wait just see what it does, and finally it loaded mp lobby
dont know whats wrong with this thing that after you install an addon, it takes forever
playing that addon someone hosted now tho
addon problem #17 - another addon problem in multiplayer is it often doesn't show all missing addons when hovering over 'i' icon
- these related problems happened just the time
definitely not computer, have space etc no problems with other games, many others have similar problems
lots of people have these problems
just happened other time also with some players
someone also said they talked to some devs on some discord that make addons and they mentioned some of the related problems or causes of it
in mp, when you hover 'icon'
reading files and creating cache
wesnoth chat feature problem - also do all pms/whispers in game disappear if you close and open wesnoth agian?
happened just now also, happened other times in past also (i think cant remember)
Last edited by needmoreplayers on December 25th, 2023, 9:46 am, edited 3 times in total.
Re: bug: takes a really long time for a map / game to be created
When you have a lot of add-ons reading and creating the cache can take quite some time, also it can happen that a particular addon is slow to load (because it's written badly)
But: usually it shouldn't try to reload the cache when joining a game (only when you join the sever) unless that game uses a custom #define so with which games does it happen when you try to join them?
But: usually it shouldn't try to reload the cache when joining a game (only when you join the sever) unless that game uses a custom #define so with which games does it happen when you try to join them?
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Re: bug: takes a really long time for a map / game to be created
Thinking about it, it would indeed be nice if the loading screen would show which addon is currently being loaded though.
Iirc the reason why it currently doesn't is that the loadingscreen::progress function doesn't take a string but only enum/int parameters (because those are atomic, and the loading screen is or at least used to use multithreading)
Iirc the reason why it currently doesn't is that the loadingscreen::progress function doesn't take a string but only enum/int parameters (because those are atomic, and the loading screen is or at least used to use multithreading)
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
- Atreides
- Posts: 1076
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: bug: takes a really long time for a map / game to be created
Yeah creating cache is a good time to go and have a snack. ; ) I do have a lot of addons but I was intrigued by the idea that it might get really slowed by a badly written one.
I'm wondering, is there something one can look for to identify such addons? Or was that just meant generally?
Re: bug: takes a really long time for a map / game to be created
You can start Wesnoth with
By badly written addons I mostly meant addons that overuse macros (remember that macros are just text insertion at loading time) I'm pretty sure that there is also already a topic here somewhere.
Also be aware that some add-ons are just quite big, for example ageless era so they naturally take longer to load than smaller ones even if they aren't written badly.
--log-debug=config
and then search in the log file for lines like Loading add-on
to check how long it took to load a certain addon. But be aware that logging itself might also Increase loading times (since it needs to write all of this stuff to a file, depending on how much it is)By badly written addons I mostly meant addons that overuse macros (remember that macros are just text insertion at loading time) I'm pretty sure that there is also already a topic here somewhere.
Also be aware that some add-ons are just quite big, for example ageless era so they naturally take longer to load than smaller ones even if they aren't written badly.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Re: bug: takes a really long time for a map / game to be created
WIth example of ageless, loading speed depends a lot on disk speed. With ssd reading thousands of unit files is multiple times faster. Years ago I had to optimize ageless release to preprocessed wml, 20mb in one file, to make it fast enough for wmlunits.
I also noticed that 1.17 does preprocess/cache faster than 1.16.
I also noticed that 1.17 does preprocess/cache faster than 1.16.
- Atreides
- Posts: 1076
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: bug: takes a really long time for a map / game to be created
I did run it with that parameter and it is quite an eye opener. Not sure why each addon is listed twice. I guess the first is to load the data and the second was to run the pre-processor (since that's where those warnings popup in). The times are peculiar in that they seem to be milliseconds but there's no way it took 2,046,740ms to load one addon. The timecodes also suggest otherwise. Oh wait, maybe they are microseconds, that works out.
If anyone is curious I filtered out the load times and they are in the section below.
If anyone is curious I filtered out the load times and they are in the section below.
Load Times
Re: bug: takes a really long time for a map / game to be created
Hmm, quite interesting, some of these times are quite huge (I'm salso assuming ms means microseconds here since otherwise I'd be way to much), do you with the debug info think it took longer than usual ?
I think the reason why each addon is listed twice it because they are once loaded when you start the game, and then again after you go to the multiplayer section. (But it can always be something else)
I think the reason why each addon is listed twice it because they are once loaded when you start the game, and then again after you go to the multiplayer section. (But it can always be something else)
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Re: bug: takes a really long time for a map / game to be created
Also are these normal times or did you clear the cache before doing this testing? Because if you cleared the cache before it woipd be less bad of course.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Re: bug: takes a really long time for a map / game to be created
That is most likely the reason. Entries I recognize as campaigns in second set are all under 30ms, as they are supposed to be in campaign ifdef.
- Atreides
- Posts: 1076
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: bug: takes a really long time for a map / game to be created
I think it took about the same as usual when I ran it with the switch. I did not clear the cache beforehand. I suspect that the first loads are when you start the program, it shows a screen (quickly) and the second one was when I went to multiplayer and that's the one that takes a long time. A few eras take over 1 second to load but in general there are a lot of addons and it adds up.
I might mention that my other two installs of 12 and 14 also take a while. Especially 12! I should use the switch on that to see what's going on since I've removed a lot of addons from 12.
I should also mention that my computer is running slower these days than when I first bought it 5 years ago. Maybe the SSD is wearing out (limited number of rewrites or something), I'm not sure with this new tech I'm a bit clueless.
I might mention that my other two installs of 12 and 14 also take a while. Especially 12! I should use the switch on that to see what's going on since I've removed a lot of addons from 12.
I should also mention that my computer is running slower these days than when I first bought it 5 years ago. Maybe the SSD is wearing out (limited number of rewrites or something), I'm not sure with this new tech I'm a bit clueless.
Re: bug: takes a really long time for a map / game to be created
In your log ageless took 7 seconds, i checked on disk and the cache file for ageless is 20 mb and 2mb compressed, i checked on my machine and loading ageless took 0.5 seconds. Without cache it took 2 seconds.
7 seconds is quite a lot imo, especially since the io part should basically be reading that 2mb compressed cache file which is not that much. So i suspect the slowness comes from somewhere else, unfortunately
Or your imes were without caching too (sometimes wensoth clears the cache , when addonds are updated for example), if you still have that log: are there any lines like
7 seconds is quite a lot imo, especially since the io part should basically be reading that 2mb compressed cache file which is not that much. So i suspect the slowness comes from somewhere else, unfortunately
Or your imes were without caching too (sometimes wensoth clears the cache , when addonds are updated for example), if you still have that log: are there any lines like
warning preprocessor: Redefining macro
in it?Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
- Atreides
- Posts: 1076
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: bug: takes a really long time for a map / game to be created
Yes I've got loads ofgfgtdf wrote: ↑December 2nd, 2023, 4:19 am In your log ageless took 7 seconds, i checked on disk and the cache file for ageless is 20 mb and 2mb compressed, i checked on my machine and loading ageless took 0.5 seconds. Without cache it took 2 seconds.
7 seconds is quite a lot imo, especially since the io part should basically be reading that 2mb compressed cache file which is not that much. So i suspect the slowness comes from somewhere else, unfortunately
Or your imes were without caching too (sometimes wensoth clears the cache , when addonds are updated for example), if you still have that log: are there any lines likewarning preprocessor: Redefining macro
in it?
warning preprocessor: Redefining macro
caused by various add-ons I've installed. I've had them always. I do know what causes them and how to get rid of them but since they're all in addons maintained by others any fix would only last until it got updated.Do these cause the cache to be cleared right away? I also do purge the cache a lot (because of the note I read that it can be corrupted since 1.14) so I may not be getting much if any benefit from caching.
Update: How odd. I ran the debug config again and this time it loaded unusually quickly and the times are all much less. Ageless went from 7.8s to 1.1s. I looked at the cached files just before doing this and the ageless was indeed cached (about 2 MB). Maybe the cache was empty when I first tried it.