Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

Code: Select all

[SRC] DEP settings.cpp
g++: installation problem, cannot exec 'cc1plus': No such file or directory
[SRC] Compiling ai/ai.cpp
g++: installation problem, cannot exec 'cc1plus': No such file or directory
make[1]: *** [ai/ai.o] Error 1
make[1]: Leaving directory `/usr/src/openttd/trunk/objs/release'
make: *** [all] Error 2
$
That's what I get when I just run clean, still with no .exe file. Does that mean anything to you people?
I redownloaded 14004 trunk, reinstalled the patch, got the same null errors, copied to cygwin directory(C:\cygwin\usr\src\openttd\trunk) and then ./configure--disable-static, then cd't to the trunk directory and ran "make" to get the above results.

-edit once someone has checked the code, i'll snip it to clutter a bit less.
Last edited by All Bran on 04 Nov 2008 06:18, edited 1 time in total.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by DaleStan »

g++ is improperly installed, like the error message says. Reinstall it.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

Ok, I now managed to compile without errors. I used 0.6.3 source and the 0.6.3 patch file, patched with tortoise svn, and then used cygwin to compile.
I then copied the necesarry ttd files into the directory(I just copied my current OpenTTD folder which is working without any hassles and pasted that in the folder where openttd.exe was without overwriting any files) tried to run openttd.exe and received errors about .dll files being missing. I copied them from my cygwin directory. The dll files are : cygfreetype-6.dll, cygpng12.dll, cygwin1.dll and cygz.dll.

Now when I try and run openttd, it loads, shows the TTD mouse cursor, but it does not show the ttd background. It stays like this for a short while. Then the mouse cursos dissapears and a few minutes later the vista mouse cursos shows(the blue "loading" circle) and then I get a message that openttd.exe has crashed.

Any ideas what might be causing this?
Eddi
Tycoon
Tycoon
Posts: 8276
Joined: 17 Jan 2007 00:14

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Eddi »

if you compiled a program in cygwin, you must start it from within cygwin also.

or provide the option -mno-cygwin in CFLAGS (needs some required libraries for mingw)
All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

I get exactly the same results either way.
i used the "run" command for cygwin eg. "run openttd.exe" is that correct?
Klaatu
Engineer
Engineer
Posts: 43
Joined: 04 Aug 2003 14:58

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Klaatu »

Does any of this *really* have to do with Build Templates? If you've got problems compiling, please start a thread about it, don't go polluting this one. JMHO.
All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

i am just trying to get my build templates to work on the 64bit windows installation of openttd i am running. I assumed it would be appropriate to post here?
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Well it's ahalf wrong and half right place.
I think i would have posted in some coding thread or made a new one.
That will attract more of the right people who are famililar with coding and compilers than the users of copy&paste.
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
All Bran
Engineer
Engineer
Posts: 11
Joined: 03 Nov 2008 08:20

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by All Bran »

That would have applied when I was having troubles compiling yes. At the moment however, it has patched without errors and compiled without errors, but I get more or less a CTD once I launch it. A black screen with the TTD pointer which can't move, and then shortly after openttd simply stops responding.

That leads me to think that it is not a patching or compiling error(point me right if I am totally wrong here) And maybe a problem between this patch and OTTD on vista x64 perhaps? :?
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Not sure what CTD is but it might be as you say, might be a virus, might be the moon ;)
Try compiling it without any patches to see if there is any differences.
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
bcmpinc
Engineer
Engineer
Posts: 19
Joined: 18 Nov 2008 00:10

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by bcmpinc »

This patch is really awesome! I've managed to get it compiling using r14589. It might have some problems with PBS signals, (maybe also with some other stuff) but here's my patch file.

Edit: It does have problems with building stations and with the types of signals.
Edit 2:Updated the patch such that it now includes the new files: copy_paste.cpp, copy_paste.h and copy_paste_gui.cpp.
Attachments
copy_paste_r14589.patch
(124.48 KiB) Downloaded 93 times
Last edited by bcmpinc on 18 Nov 2008 11:14, edited 1 time in total.
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Looks like you accidently do like i accidently do sometimes, i claim something is good but foreget to tell why.
So far we know it's a patch and you like it, we dont know what it is supposed to do.
Can you tell us please :)
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
bcmpinc
Engineer
Engineer
Posts: 19
Joined: 18 Nov 2008 00:10

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by bcmpinc »

It's a patched version of the copy&paste patch. It really reduces repetitive building tasks (like building junctions), giving me more time optimizing them. However, I think i might have generated the patch file incorrectly, which causes it to be missing 2 new files. I'll fix that later.
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Hehe a patch for a patch ;)

Well, what is it that you have improved?
You said something about stations, are the stations copied too now?
Is it selectable if stations should be copied?
Is there any other improvements?

I really like copy&paste and any addons are very welcome :)
I think there is a need to make it place whole lines of track instead of a single tile at a time and faultcontrol.
Well that's my opinion but i still love what Frostregen has done so far :)
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
bcmpinc
Engineer
Engineer
Posts: 19
Joined: 18 Nov 2008 00:10

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by bcmpinc »

Theres actually only 1 minor improvement. The patch can be applied to revision r14589 without problems and the resulting code compiles. (At least if I've managed to create the patchfile correctly.)

Stations can't be copied.
Also the signal type (normal, gate, PBS) is not copied. It just places normal signals instead of the original type.
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Well, one improvement is an improvment :)

It will be intresting to see what improvements will happpen in the future of this code :)
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
flash55
Engineer
Engineer
Posts: 13
Joined: 01 Mar 2008 14:36

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by flash55 »

I love this patch !
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by DJ Nekkid »

is there any chance this can get synced with cargodest? i keep building the same station bits all over all the time...
Member of the
ImageImage
Starbud
Traffic Manager
Traffic Manager
Posts: 211
Joined: 05 Mar 2007 00:48
Location: Sweden
Contact:

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by Starbud »

Cargodest?
Do you have any screenshots of what youre building?
It sounds very intresting.
I remember reading some idea about it some time ago but i didnt think it was developed yet.
http://openttd.org - i love building stuff :)
Someones play with pics http://dimalimsliv.blogg.se
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: Build Templates (Copy&Paste) (r13911 + 0.6.3 + 0.6.2)

Post by DJ Nekkid »

http://www.tt-forums.net/viewtopic.php?f=33&t=39161

no screenies yet, but i'll take a few the next time i play
Member of the
ImageImage
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests