I've started my first full game in almost two years and so far all is working as expected and intended.

Thank you cirdan.

Moderator: OpenTTD Developers
That is good to know.wallyweb wrote:Looking good. One month and 18 20 downloads since the last commit and compiles and no bug/crash reports.
I've started my first full game in almost two years and so far all is working as expected and intended.![]()
clean up spells s-t-a-b-i-l-i-t-ycirdan wrote:I am currently trying to clean up the scripting code somewhat, although this will not have any direct impact on the game from the point of view of a user.
Yes, and I am very keen on simple, clean, understandable code. And it certainly pays off—I have found and fixed many bugs just because they became apparent after tidying up a subsystem. Take, for instance, this recent openttd bug (with thread) regarding pathfinding on mixed electrified/non-electrified rail tracks. I have tested it on my branch and it does not exhibit this bug, but I had never found it before as such, so I can only guess that it was fixed as a consequence of the heavy rework I did in the pathfinding code.wallyweb wrote:clean up spells s-t-a-b-i-l-i-t-ycirdan wrote:I am currently trying to clean up the scripting code somewhat, although this will not have any direct impact on the game from the point of view of a user.
I try to keep my branch lagging about 2 weeks behind openttd trunk, to review their commits in batches (not that there are that many, though) and sometimes pick several of them together, but I only update the public repo every now and them, usually when I have a bugfix or a new feature. This means that my local branch is more or less up to date with openttd trunk, but the published one is not.TrueSatan wrote:Any chance - while cleaning up - to catch up with the trunk?
Nice to know.TrueSatan wrote:Game runs very good so far
I may have a look, but from the first post in that thread I do not quite get if the "full" patch is multiplayer-safe, which is a must.TrueSatan wrote:Guess if I find the time I will see if there is any chance to apply
the Multil-ine Tool (http://www.tt-forums.net/viewtopic.php?f=33&t=70966)
It is multiplayer-safe. Limited version is compatible with unpatched servers.cirdan wrote:I may have a look, but from the first post in that thread I do not quite get if the "full" patch is multiplayer-safe, which is a must.TrueSatan wrote:Guess if I find the time I will see if there is any chance to apply
the Multil-ine Tool (http://www.tt-forums.net/viewtopic.php?f=33&t=70966)
Do not hold your breath. They have had years for that.TrueSatan wrote:And I am aware that you are using your own devel branch but its not a bad idea to be near the same devel point that the main trunk has. And maybe some day the devs will have a look into your code and will have it in trunk as well
I will try to have a look then.adf88 wrote:It is multiplayer-safe. Limited version is compatible with unpatched servers.
cirdan wrote:I have pushed a new batch of commits to the repository.
Code: Select all
[SRC] Compiling script/script_infolist.cpp
[SRC] Compiling script/script_instance.cpp
In file included from /nmf/src/script/script_instance.cpp:13:0:
/nmf/src/script/script_instance.cpp: In static member function ‘static SQInteger ScriptInstance::Import(HSQUIRRELVM)’:
/nmf/src/script/../string.h:365:55: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘std::map<const char*, const char*, StringCompare>::size_type {aka long unsigned int}’ [-Wformat=]
snprintf (bstrfmt__buffer, bstrfmt__size, __VA_ARGS__); \
^
nmf/src/script/script_instance.cpp:230:3: note: in expansion of macro ‘bstrfmt’
bstrfmt (fake_class, "_internalNA%u", engine->loaded_library.size() + 1);
^
/nmf/src/script/../string.h:365:55: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘std::map<const char*, const char*, StringCompare>::size_type {aka long unsigned int}’ [-Wformat=]
snprintf (bstrfmt__buffer, bstrfmt__size, __VA_ARGS__); \
^
/nmf/src/script/script_instance.cpp:230:3: note: in expansion of macro ‘bstrfmt’
bstrfmt (fake_class, "_internalNA%u", engine->loaded_library.size() + 1);
^
[SRC] Compiling script/script_scanner.cpp
[SRC] Compiling script/squirrel.cpp
[SRC] Compiling settings.cpp
[SRC] Compiling settings_gui.cpp
[SRC] Compiling ship_cmd.cpp
[SRC] Compiling signalbuffer.cpp
[SRC] Compiling station_cmd.cpp
[SRC] Compiling strgen/strgen_base.cpp
[SRC] Compiling strings.cpp
[SRC] Compiling subsidy.cpp
[SRC] Compiling timetable_cmd.cpp
[SRC] Compiling toolbar_gui.cpp
[SRC] Compiling town_cmd.cpp
[SRC] Compiling train_cmd.cpp
[SRC] Compiling tunnelbridge_cmd.cpp
[SRC] Compiling vehicle.cpp
[SRC] Compiling water_cmd.cpp
[SRC] Compiling waypoint_cmd.cpp
[SRC] Compiling widget.cpp
[SRC] Compiling window.cpp
JGR's patch is currently based to r27386 whereas NMF is currently based to r27327. We must wait for when Cirdan is ready to rebase NMF to a later version than r27386.TrueSatan wrote:...JGR's patch with the programmable signals.
Nothing major has changed between r27327 and r27386, and you'd need to do a rather involved rebase/cherry-pick either way, so there wouldn't be anything to be gained by waiting.wallyweb wrote:JGR's patch is currently based to r27386 whereas NMF is currently based to r27327. We must wait for when Cirdan is ready to rebase NMF to a later version than r27386.TrueSatan wrote:...JGR's patch with the programmable signals.
It failed ...JGR wrote:[... so there wouldn't be anything to be gained by waiting.
It's not going to suddenly start working if you wait. Cirdan's branch looks nothing like trunk.wallyweb wrote:It failed ...JGR wrote:[... so there wouldn't be anything to be gained by waiting.
Code: Select all
git cherry-pick -x master..tracerestrict
As you have seen and Cirdan has noted in many of his posts, much of his work has been cherry picking and code clean-up. The nice thing is that he has been able to push along the way and has been able to resolve bugs quite quickly. I am a big fan of your tracerestrict work in TTDPatch and appreciate your porting it as a patch to OpenTTD. If I knew what the Heck I was doing, I'd offer to lend a hand in adapting your patch to Cirdan's NMF. Your efforts are greatly appreciated. Hopefully this is not an ongoing project to be repeated with each new NMF push.JGR wrote:I had a go yesterday but don't have time to finish the doing the conflict resolution/renaming things at the moment. I may do the rest in a few days.
You are right, those warnings are new, and could cause trouble on 64-bit big-endian machines. I will fix them.TrueSatan wrote:Here is the Ubuntu 14.04 64bit version as usual and some warnings, that I think I haven't seen before.
I no longer rebase my branch against openttd. Any patch against openttd must be manually picked on top of my branch.wallyweb wrote:JGR's patch is currently based to r27386 whereas NMF is currently based to r27327. We must wait for when Cirdan is ready to rebase NMF to a later version than r27386.
Yes, anything from openttd should load in my branch, but the reverse route is not possible.wallyweb wrote:In your pevious rebase, I was able to apply HackaLittleBit's Everest patch successfully. One thing that I and SwissFan91 noticed was that saved scenarios did not work accross to a similarly patched OpenTTD. Is this to be expected, perhaps due to the differences between NMF and trunk?
... and this describes what JGR wrote here ?cirdan wrote:I no longer rebase my branch against openttd. Any patch against openttd must be manually picked on top of my branch.
My gratitude to JGR for his efforts just increased exponentially ...cirdan wrote:Usually the best course of action in this case is to rewrite the changes, one commit at a time, from the new branch.
I have taken a look into this and unfortunately adf88's patch interferes with some changes I did to allow two parallel tracks of different types on the same tile. This is not to say that porting his patch is impossible, but it will require non-trivial merging.TrueSatan wrote:Guess if I find the time I will see if there is any chance to apply the Multil-ine Tool (http://www.tt-forums.net/viewtopic.php?f=33&t=70966)
Users browsing this forum: No registered users and 36 guests