Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Jan 16, 2019 11:23 am

All times are UTC




Post new topic  Reply to topic  [ 66 posts ]  Go to page 1 2 3 4 Next
Author Message
PostPosted: Sun Sep 20, 2009 5:16 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Oct 05, 2008 5:06 pm
Posts: 80
Location: Goulp, FR
Hello,

Watch Company patch has been removed from here. You will able to find it else where.

_________________
Pourquoi faire simple quand on peut faire compliqué ?
KISS - Keep It Simple, Stupid.
Open TTD Goulp Web Service
OpenTTD Goulp Web Forum


Last edited by Muxy on Sun Sep 19, 2010 3:17 pm, edited 33 times in total.

Top
   
PostPosted: Sun Sep 20, 2009 5:31 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Thu Feb 09, 2006 7:15 pm
Posts: 3815
Based on the implementation you're looking at other companies. It could also work for AIs in single player.


Top
   
PostPosted: Sun Sep 20, 2009 5:34 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Oct 05, 2008 5:06 pm
Posts: 80
Location: Goulp, FR
[..]

_________________
Pourquoi faire simple quand on peut faire compliqué ?
KISS - Keep It Simple, Stupid.
Open TTD Goulp Web Service
OpenTTD Goulp Web Forum


Last edited by Muxy on Sun Sep 19, 2010 3:18 pm, edited 1 time in total.

Top
   
PostPosted: Mon Sep 21, 2009 7:06 am 
Offline
Tycoon
Tycoon

Joined: Wed Feb 14, 2007 5:48 pm
Posts: 1053
opening a viewport may be more interesting.... then one could also watch multiple companies


Top
   
PostPosted: Mon Sep 21, 2009 9:26 am 
Offline
Engineer
Engineer
User avatar

Joined: Sun Oct 05, 2008 5:06 pm
Posts: 80
Location: Goulp, FR
[..]

_________________
Pourquoi faire simple quand on peut faire compliqué ?
KISS - Keep It Simple, Stupid.
Open TTD Goulp Web Service
OpenTTD Goulp Web Forum


Last edited by Muxy on Sun Sep 19, 2010 3:18 pm, edited 1 time in total.

Top
   
PostPosted: Mon Sep 21, 2009 6:46 pm 
Offline
Tycoon
Tycoon

Joined: Wed Feb 14, 2007 5:48 pm
Posts: 1053
might get a bit jumpy when 2 people are in one company and building like crazy!


Top
   
PostPosted: Sun Sep 27, 2009 2:24 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1498
Location: The sunny side of Alps
dihedral wrote:
opening a viewport may be more interesting.... then one could also watch multiple companies

I have thought about this from time to time not in the form of a viewport but just "follow other company's viewing area" and it is nice to see the idea being discussed here.
I wish you success on this endeavour, Muxy. :wink:

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
   
PostPosted: Sun Sep 27, 2009 2:59 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Aug 25, 2007 5:03 pm
Posts: 2185
Location: ~/
Planetmaker had a patch like this once I think.

_________________
Image


Top
   
PostPosted: Sun Sep 27, 2009 3:00 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Aug 25, 2007 5:03 pm
Posts: 2185
Location: ~/
dihedral wrote:
might get a bit jumpy when 2 people are in one company and building like crazy!

Or in an OTTDcoop game.

_________________
Image


Top
   
PostPosted: Mon Sep 28, 2009 8:29 am 
Offline
Tycoon
Tycoon

Joined: Wed Feb 14, 2007 5:48 pm
Posts: 1053
then it might be better to also transmit the client id, and watch clients instead of companies!


Top
   
PostPosted: Mon Sep 28, 2009 7:40 pm 
Offline
Tycoon
Tycoon

Joined: Thu Apr 02, 2009 10:43 pm
Posts: 3008
Location: Massachusetts, USA
Really great patch, which could be used for servers, making enforcing the rules easy!
I would seriously reconsider the wording for some of the command help, etc. (Yes, I can tell English isn't your mother tongue), Like so:
Attachment:
File comment: Revised Language, Tested and working
watch_cmd_072_revised.patch [3.77 KiB]
Downloaded 226 times


Binary:


Attachments:
File comment: Binary for revised language
watch_cmd_072_revised.zip [3.95 MiB]
Downloaded 175 times


Last edited by petert on Sun Oct 04, 2009 9:59 pm, edited 2 times in total.
Top
   
PostPosted: Wed Sep 30, 2009 7:51 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Oct 05, 2008 5:06 pm
Posts: 80
Location: Goulp, FR
[..]

_________________
Pourquoi faire simple quand on peut faire compliqué ?
KISS - Keep It Simple, Stupid.
Open TTD Goulp Web Service
OpenTTD Goulp Web Forum


Last edited by Muxy on Sun Sep 19, 2010 3:19 pm, edited 1 time in total.

Top
   
PostPosted: Thu Oct 01, 2009 8:45 pm 
Offline
Tycoon
Tycoon

Joined: Thu Apr 02, 2009 10:43 pm
Posts: 3008
Location: Massachusetts, USA
You're very welcome, this is such a great tool, I hope it makes trunk. You should post on bugs.openttd.org as a patch.


Top
   
PostPosted: Thu Oct 01, 2009 9:07 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Tue Oct 03, 2006 6:26 pm
Posts: 351
Location: Prague, Czech Republic
I had a patch similiar to this one... Updated to current rev, maybe it will be helpful for you :) (maybe won't...) Hope it still works.


Attachments:
center_player_r17680.diff [7.48 KiB]
Downloaded 185 times

_________________
Image
Top
   
PostPosted: Sat Oct 03, 2009 7:04 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed Jun 06, 2007 9:07 pm
Posts: 1710
Location: Czech Republic
SirkoZ wrote:
but just "follow other company's viewing area" and it is nice to see the idea being discussed here.


This is not possible - since when you just move viewport around, nothing is sent to server, only when you actually build something (and you can also use extra viewport windows to build things :). And AI's even don't have anything like viewport at all.

Best you can do is center while something is built. Perhaps make it slightly configurable, like no re-centering if another thing built is still near centre of the viewport to reduce jumping.

_________________
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)


Top
   
PostPosted: Sun Oct 04, 2009 10:14 pm 
Offline
Tycoon
Tycoon

Joined: Thu Apr 02, 2009 10:43 pm
Posts: 3008
Location: Massachusetts, USA
Updated to 0.7.3:
Attachment:
watch_cmd_073_revised.patch [3.77 KiB]
Downloaded 178 times


Binary:
Attachment:
watch_cmd_073_revised.zip [3.96 MiB]
Downloaded 174 times


Top
   
PostPosted: Tue Oct 06, 2009 1:56 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed Jun 06, 2007 9:07 pm
Posts: 1710
Location: Czech Republic
I added the patch to my patchpack and when testing it, it seems that there is some bug - when I joined a server where I was alone, it seems that by default I am watched. When I tried "watch 0" to turn watching off, it said:
Unknown player. Player range is between 1 and 15. Use 0 to cancel watching

I think the problem arises from "uint8 _watched_player" -> the variable is unsigned 8bit int, therefore it is always >=0, therefore you are always watching someone.

When you compare the index (CompanyID is enum and basically it is also unsigned int) to -1 (in the condition to turn off the watching), it will always be false, since if you specify "watch 0", the index will probably have something like 255 at that point. So you can't turn the watching off ...

Also, by default you should not be watching anyone.

_________________
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)


Top
   
PostPosted: Tue Oct 06, 2009 9:14 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Wed Jun 06, 2007 9:07 pm
Posts: 1710
Location: Czech Republic
Ok, I am attaching the patch with these problems fixed. By default you don't watch anyone and watching can be stopped.


Attachments:
File comment: Working version for 0.7.3
watch_cmd_073_working.patch [3.13 KiB]
Downloaded 191 times

_________________
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
Top
   
PostPosted: Tue Oct 06, 2009 11:36 pm 
Offline
Engineer
Engineer
User avatar

Joined: Sun Oct 05, 2008 5:06 pm
Posts: 80
Location: Goulp, FR
[..]

_________________
Pourquoi faire simple quand on peut faire compliqué ?
KISS - Keep It Simple, Stupid.
Open TTD Goulp Web Service
OpenTTD Goulp Web Forum


Last edited by Muxy on Sun Sep 19, 2010 3:19 pm, edited 2 times in total.

Top
   
PostPosted: Tue Oct 06, 2009 11:42 pm 
Offline
Tycoon
Tycoon

Joined: Thu Dec 20, 2007 12:49 pm
Posts: 3653
_current_company is a CompanyID, not a CompanyByte.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 66 posts ]  Go to page 1 2 3 4 Next

All times are UTC


Who is online

Users browsing this forum: BeSt-Com, Google Adsense [Bot], JGR and 6 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-2019 phpBB Limited

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