Page 5 of 12

Re: Copy & Paste patch, reworked

Posted: 15 Apr 2009 18:12
by kyosuke1989
maartena wrote:I have been using the 0.7.0 binary (thanks for that) and played several online games over the weekend without any issues or desyncs. Of course I have a 100 Mbps link to my servers, and a 15/2 Mbps pipe to the internet, so that may make a difference. But from what I have been able to test, it looks pretty stable.
I haven't had any crashes at all, previous version 0.7.0 b1 had one crash when using template, but good now.

Re: Copy & Paste patch, reworked

Posted: 21 Apr 2009 10:37
by 2007Alain2007
Copy and pasted dose not work i tracked down why it dose not any more after

(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing

All the VHM_ codes have changed to HT_

But i cant think what

To change

In src/tilehighlight_type.h

VHM_PREVIEW = 6, ///< CopyPaste Preview


The only other part of the patch that i think might be a proble is

+ case VHM_PREVIEW:
+ _thd.new_drawstyle = HT_PREVIEW;
+ break;

and also were ever VHM_ has been used in the hole patch do i just change it to HT_

any help would be great and thank you

Re: Copy & Paste patch, reworked

Posted: 21 Apr 2009 10:41
by Eddi
well, you should instead introduce a HT_PREVIEW at the appropriate definition of the other HT_stuff

Re: Copy & Paste patch, reworked

Posted: 21 Apr 2009 11:18
by 2007Alain2007
Hi i try my best here but failed can some one tell me were i gone wrong

patch file
CopyPaste_not to be used trying to update.patch
build with the error in
dont use copy and pasted bug trying to update.7z
this is the bug that i am seeing
bug.png
I am realy rubish at this updateing

but as you see i do have a go at it :)

Re: Copy & Paste patch, reworked

Posted: 21 Apr 2009 16:18
by yorick
2007Alain2007 wrote:Hi i try my best here but failed can some one tell me were i gone wrong

patch file
CopyPaste_not to be used trying to update.patch
build with the error in
dont use copy and pasted bug trying to update.7z
this is the bug that i am seeing
bug.png
I am realy rubish at this updateing

but as you see i do have a go at it :)
You know I updated the hg repo last week? :p
and the bug: you forgot to update the widgets, it seems. ;)

Re: Copy & Paste patch, reworked

Posted: 29 Apr 2009 11:19
by 2007Alain2007
hi i updated as it showed in hg repo and still did not work the gui buton is not showing

Re: Copy & Paste patch, reworked

Posted: 26 May 2009 11:17
by nex259
Update: patch for SVN trunk r16393 to r16427;

*patch for German lang is removed. (because some glyphs of German are corrupt on texteditors which I am using.)
**Paste preview : only show highlighted grids. (rail preview(pieces of autorail preview parts? )are not shown )
need to change here?

Code: Select all

	image = SPR_AUTORAIL_BASE;
	TrackBits tracktodraw = _copy_paste.GetCPTrackBits(bindex);
	for (Track t = TRACK_BEGIN; t < TRACK_END; t++) {
		if (tracktodraw & TrackToTrackBits(t)) DrawPreviewSprite(image + _AutorailTilehSprite[SLOPE_FLAT][t], PAL_NONE, ti->x, ti->y, ti->z);
	}
    

Re: Copy & Paste patch, reworked

Posted: 26 May 2009 11:31
by Kasc
I'm trying to get this working for 0.7.0, I followed the very limited instructions a few pages ago but Build OpenTTD doesn't know what a .diff file is :S

Can anyone give some instructions on how to do it please :?

EDIT: Read some of the stickies on the main page and are going to try some of those things.
EDIT2: Tried those things and I still don't understand how I would use this to patch 0.7.0 so back to square one. Can anyone help me please? :P

Re: Copy & Paste patch, reworked

Posted: 26 May 2009 12:46
by nex259
Kasc wrote:I'm trying to get this working for 0.7.0, I followed the very limited instructions a few pages ago but Build OpenTTD doesn't know what a .diff file is :S

Can anyone give some instructions on how to do it please :?

EDIT: Read some of the stickies on the main page and are going to try some of those things.
EDIT2: Tried those things and I still don't understand how I would use this to patch 0.7.0 so back to square one. Can anyone help me please? :P
1)”Build OpenTTD" means BuildOTTD?
BuildOTTD executes patcher with option "-p0"(=patch -p0 <[file]),but mostly ".diff"s and ".patch"s which are uploaded to forum require to execute patcher with option "-p1"(=patch -p1 <[file]).

then you must modify the file using texteditor or awk,perl, and etc.:
before:
"--- ***/foo" (mostly "***" = "a")
"+++ "***/foo" (mostly "***" = "b")

->remove "***/"

after:
"--- foo"
"+++ foo"

Re: Copy & Paste patch, reworked

Posted: 26 May 2009 18:10
by Kasc
Yep I meant BuildOTTD, sorry.

And I didn't understand anything you said tbh :S

Re: Copy & Paste patch, reworked

Posted: 27 May 2009 03:35
by ever
long story short buildottd doesn't work yet

Re: Copy & Paste patch, reworked

Posted: 02 Jun 2009 10:56
by Kasc
So that means there's no way to do what I'm trying to acheive? I'm sure someone knows.

Re: Copy & Paste patch, reworked

Posted: 02 Jun 2009 16:05
by Eddi
you can use the mingw installation that buildottd installed. put the mingw\bin and msys\bin directories in the PATH variable, then open a command line in the openttd directory and execute the command "patch -p1 -i your_desired_patch.diff", and if that succeded, type "make"

Re: Copy & Paste patch, reworked

Posted: 05 Jun 2009 10:57
by Kasc
So what needs to be in this folder? Surely OpenTTD 0.7.0 ? I have since uninstalled BuildOTTD because someone up there ^ said it didn't work D: ..

Also why is it such a problem that someone won't just make the 0.7.0 version?

Re: Copy & Paste patch, reworked

Posted: 05 Jun 2009 11:52
by dihedral
it's outdataed! if you want to update the patch, feel free!

Re: Copy & Paste patch, reworked

Posted: 05 Jun 2009 12:20
by planetmaker
Kasc wrote:So what needs to be in this folder? Surely OpenTTD 0.7.0 ? I have since uninstalled BuildOTTD because someone up there ^ said it didn't work D: ..

Also why is it such a problem that someone won't just make the 0.7.0 version?
*Someone* has better things to do than updating patches for *someone else*. Just a guess though.

Re: Copy & Paste patch, reworked

Posted: 05 Jun 2009 19:34
by Kasc
People have been saying the 0.7.0 RC1 works for 0.7.0, is this even true?

The stickies on the main page don't really teach a newbie such as myself how to patch.

Re: Copy & Paste patch, reworked

Posted: 05 Jun 2009 20:56
by DaleStan
Execute step 1. When step 1 is complete, execute step 2. When step 2 is complete, execute step 3.

Lather, rinse, repeat.

Re: Copy & Paste patch, reworked

Posted: 06 Jun 2009 14:03
by Kasc
Wow seriously, I ask a perfectly acceptable question and all I get is sarcasm and cryptic hints >_>

Ok maybe you've answered these sorts of questions 12 million times before, but that's not my fault is it?

Re: Copy & Paste patch, reworked

Posted: 06 Jun 2009 14:22
by Rubidium
Kasc wrote:Wow seriously, I ask a perfectly acceptable question and all I get is sarcasm and cryptic hints
The stickies have helped many people with patching and compiling OpenTTD, so somehow I cannot believe that it is totally incomprehensible.

Patching is kind of like learning another language. For example you don't know English and you go on holiday to England. A simple 'travel dictionary' might do the job in some places, but if you want to properly learn how to patch you need to study. Some people can learn English from a book and a few tapes, but most people need some kind of tutor. The same would hold for learning how to patch.

What you are asking for is that we 'must' tutor everyone because they cannot grasp the concepts from the 'books'. That's like asking strangers to teach them English. What we say is one of: take a look at book X (look at webpage X), hire a translator (hire someone to assemble and compile the patches you want) or don't go on holiday to England but go to a place where you speak the language (just use the binaries that are provided).