Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 20, 2018 1:50 am

All times are UTC




Post new topic  Reply to topic  [ 1686 posts ]  Go to page Previous 181 82 83 84 85
Author Message
 Post subject: Re: JGR's Patch Pack
PostPosted: Tue Sep 11, 2018 9:34 am 
Offline
Engineer
Engineer

Joined: Fri Nov 14, 2014 10:49 am
Posts: 5
Hey JGR! Thanks for the new update! Can you help me with a compiling problem? I always compiled on MacBook without any problems, but 27.0 gave me spritecache error. I pasted the output from where it tries to compile spritecache.cpp. I am quite the noob when it comes to compiling, but I had it working fine before!
Thanks man!

Code:
[SRC] Compiling spritecache.cpp
In file included from /Users/koevoets/Downloads/source/src/spritecache.cpp:19:
In file included from /Users/koevoets/Downloads/source/src/blitter/factory.hpp:19:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/map:442:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__tree:18:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:719:71: error:
      invalid operands to binary expression ('const SpriteInfo' and
      'const SpriteInfo')
    bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;}
                                                                  ~~~ ^ ~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:4973:13: note:
      in instantiation of member function 'std::__1::__less<SpriteInfo,
      SpriteInfo>::operator()' requested here
        if (__comp(*__ptr, *--__last))
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:5001:5: note:
      in instantiation of function template specialization
      'std::__1::__sift_up<std::__1::__less<SpriteInfo, SpriteInfo> &,
      std::__1::__wrap_iter<SpriteInfo *> >' requested here
    __sift_up<_Comp_ref>(__first, __last, __comp, __last - __first);
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:5010:12: note:
      in instantiation of function template specialization
      'std::__1::push_heap<std::__1::__wrap_iter<SpriteInfo *>,
      std::__1::__less<SpriteInfo, SpriteInfo> >' requested here
    _VSTD::push_heap(__first, __last, __less<typename iterator_traits<_R...
           ^
/Users/koevoets/Downloads/source/src/spritecache.cpp:680:8: note: in
      instantiation of function template specialization
      'std::__1::push_heap<std::__1::__wrap_iter<SpriteInfo *> >' requested here
                std::push_heap(candidates.begin(), candidates.end());
                     ^
/Users/koevoets/Downloads/source/src/spritecache.cpp:670:8: note: candidate
      function not viable: 'this' argument has type 'const SpriteInfo', but
      method is not marked const
                bool operator<(const SpriteInfo &other)
                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:567:1: note:
      candidate template ignored: could not match 'pair<type-parameter-0-0,
      type-parameter-0-1>' against 'const SpriteInfo'
operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:706:1: note:
      candidate template ignored: could not match
      'reverse_iterator<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_I...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:1125:1: note:
      candidate template ignored: could not match
      'move_iterator<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iterator:1494:1: note:
      candidate template ignored: could not match
      '__wrap_iter<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y...
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/tuple:1187:1: note:
      candidate template ignored: could not match 'tuple<type-parameter-0-0...>'
      against 'const SpriteInfo'
operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2874:1: note:
      candidate template ignored: could not match
      'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against
      'const SpriteInfo'
operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2932:1: note:
      candidate template ignored: could not match
      'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against
      'const SpriteInfo'
operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2941:1: note:
      candidate template ignored: could not match
      'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against
      'const SpriteInfo'
operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4702:1: note:
      candidate template ignored: could not match
      'shared_ptr<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4767:1: note:
      candidate template ignored: could not match
      'shared_ptr<type-parameter-0-0>' against 'const SpriteInfo'
operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:4775:1: note:
      candidate template ignored: could not match
      'shared_ptr<type-parameter-0-0>' against 'const SpriteInfo'
operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT
^
1 error generated.
make[1]: *** [spritecache.o] Error 1
make: *** [all] Error 1


Top
   
 Post subject: Re: JGR's Patch Pack
PostPosted: Tue Sep 11, 2018 10:20 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 966
Location: Birmingham, England
A thank you for including the "send to depot and sell" option. It is absolutely magic. When I close a service now, I just auto sell the vehicles and don't have to sit there waiting until the last one arrives.


Top
   
 Post subject: Re: JGR's Patch Pack
PostPosted: Wed Sep 12, 2018 8:53 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Aug 08, 2005 1:46 pm
Posts: 1833
Location: Ipswich
vincentkoevoets wrote:
Hey JGR! Thanks for the new update! Can you help me with a compiling problem? I always compiled on MacBook without any problems, but 27.0 gave me spritecache error. I pasted the output from where it tries to compile spritecache.cpp. I am quite the noob when it comes to compiling, but I had it working fine before!
Thanks man!

Thanks for letting me know about this, can you try the most recent commit which I've pushed to the repo (i.e. using git pull).

3iff wrote:
A thank you for including the "send to depot and sell" option. It is absolutely magic. When I close a service now, I just auto sell the vehicles and don't have to sit there waiting until the last one arrives.

Thanks :)

_________________
Ex TTDPatch Coder, Grumpy Greymuzzle
Avatar by MoonsongWolf.
Patch Pack, Github
Dad-Coder since April 2018


Top
   
 Post subject: Re: JGR's Patch Pack
PostPosted: Wed Sep 12, 2018 11:32 am 
Offline
Engineer
Engineer

Joined: Fri Nov 14, 2014 10:49 am
Posts: 5
JGR wrote:
vincentkoevoets wrote:
Hey JGR! Thanks for the new update! Can you help me with a compiling problem? I always compiled on MacBook without any problems, but 27.0 gave me spritecache error. I pasted the output from where it tries to compile spritecache.cpp. I am quite the noob when it comes to compiling, but I had it working fine before!
Thanks man!

Thanks for letting me know about this, can you try the most recent commit which I've pushed to the repo (i.e. using git pull).


Everything back in working order. I'm ashamed to admit that I don't know how to use github (and git pull..), really a noob!, but I manually changed the code of spritecache.cpp and compiled without a problem.


Last edited by vincentkoevoets on Thu Sep 13, 2018 6:49 am, edited 1 time in total.

Top
   
 Post subject: Re: JGR's Patch Pack
PostPosted: Wed Sep 12, 2018 4:55 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Aug 07, 2004 11:56 am
Posts: 1858
Skype: squirejames5
Location: Stoke-on-Trent
JGR wrote:
SquireJames wrote:
Seem to be encountering repeated crashes when trying to upgrade signals (from their semaphore to electric light equivalent). I can upload the dmp file to a server if required.

Does this still occur with the latest release (0.27.0)?
There have been some bug fixes since then which may be related.
If so it would be useful if you could attach a savegame.
I can't do anything with windows dmp files, so there's no need to upload those.
Thanks.


Running 0.27.0 now and it seems to be resolved. Thanks :)

_________________
Image


Top
   
 Post subject: Re: JGR's Patch Pack
PostPosted: Mon Sep 17, 2018 3:44 am 
Offline
Engineer
Engineer

Joined: Sat Dec 26, 2015 1:04 am
Posts: 18
Thanks again for all of the work you put into this for us! <3

If I may make another small suggestion/request, when creating a new vehicle group, could that group (optionally?) automatically be made a child of whatever group was selected at the time? As the network expands it gets a little annoying scrolling and scrolling and scrolling to drag each new subgroup to the appropriate parent :lol:

Also, a bug report, when setting Zoning to "Station catchment (window open)" it falls short a row of tiles to the bottom-left.

And I don't know if this is a bug or intentional, but when "When paused allow:" is set to the default "All non-construction actions" it is not allowed to program a signal while paused. I'm leaning toward bug, because setting routefinding restrictions is still allowed...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1686 posts ]  Go to page Previous 181 82 83 84 85

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.