strange bug with making fences ... December 24, 2009, 04:23:57 pm Yesterday I began a small fances addon for pak128 ...I made a first fence which worked very well.Today I made a palisade which is working fine too but now the fence makes a bery strange graphical bug ...I use Simutrans 102.1 underground slopesHere are the sources :QuoteObj=waywaytype=tracksystem_type=255Name=fencecost=5000maintenance=0topspeed=0max_weight=0intro_year = 1900intro_month = 1icon=> grillage.4.0cursor=grillage.4.1image[-]=grillage.3.1image=grillage.0.1image[N]=grillage.0.3image[W]=grillage.0.2image[E]=grillage.0.0image[NS]=grillage.0.5image[EW]=grillage.0.4image[NSE]=grillage.2.3image[NSW]=grillage.2.1image[NEW]=grillage.2.0image[SEW]=grillage.2.2image[NSEW]=grillage.3.0image[NE]=grillage.1.1image[SE]=grillage.1.3image[NW]=grillage.1.2image[SW]=grillage.1.0imageUp[3]=grillage.3.3imageUp[6]=grillage.3.2imageUp[9]=grillage.3.5imageUp[12]=grillage.3.4diagonal[NE]=grillage.2.4diagonal[NW]=grillage.1.5diagonal[SE]=grillage.1.4diagonal[SW]=grillage.2.5-------------------------Obj=waywaytype=tracksystem_type=255Name=palisadecost=2500maintenance=0topspeed=0max_weight=0intro_year = 1800intro_month = 1icon=> palissade.4.0cursor=palissade.4.1image[-]=palissade.3.1image=palissade.0.1image[N]=palissade.0.3image[W]=palissade.0.2image[E]=palissade.0.0image[NS]=palissade.0.5image[EW]=palissade.0.4image[NSE]=palissade.2.3image[NSW]=palissade.2.1image[NEW]=palissade.2.0image[SEW]=palissade.2.2image[NSEW]=palissade.3.0image[NE]=palissade.1.1image[SE]=palissade.1.3image[NW]=palissade.1.2image[SW]=palissade.1.0imageUp[3]=palissade.3.3imageUp[6]=palissade.3.2imageUp[9]=palissade.3.5imageUp[12]=palissade.3.4diagonal[NE]=palissade.2.4diagonal[NW]=palissade.1.5diagonal[SE]=palissade.1.4diagonal[SW]=palissade.2.5And by the way I have another problem with graphic.simutrans ... Quote Selected
Re: strange bug with making fences ... Reply #1 – December 24, 2009, 04:36:48 pm The image format is 32 bits, with transparency activated. It must be 24 bits. Create a new image of the same size and just copy & paste the old one on it.About the g.s.c problem..which web browser are you using (operating system and version)? Quote Selected
Re: strange bug with making fences ... Reply #2 – December 24, 2009, 04:50:37 pm Yes that looks like PNG with alpha channel active. Save without alpha and it should be fine. Quote Selected
Re: strange bug with making fences ... Reply #3 – December 24, 2009, 05:39:32 pm QuoteThe image format is 32 bits, with transparency activatedI see ... one more bug from windows 7's MSpaint -_-"thanks, I'm going to try this solution.QuoteAbout the g.s.c problem..which web browser are you using (operating system and version)?Firefox 3.5, windows 7 pro x32 bits. Quote Selected
Re: strange bug with making fences ... Reply #4 – December 24, 2009, 06:09:19 pm Quote from: gauthier – on December 24, 2009, 05:39:32 pmI see ... one more bug from windows 7's MSpaint -_-"I think it's rather problem of makeobj which accepts only subset of PNG format... Quote Selected
Re: strange bug with making fences ... Reply #5 – December 24, 2009, 06:31:43 pm Quote from: gauthier – on December 24, 2009, 05:39:32 pmFirefox 3.5, windows 7 pro x32 bits.I can't test it with windows 7, but I've tested it with Firefox 3.5.5 and windows xp sp2 and it shows the captcha img. It's a dinamically generated image, as the source is a php script. So I guess something is blocking it. Are you using some kind of firefox blocking addon link Adblock or similar? Quote Selected
Re: strange bug with making fences ... Reply #6 – December 24, 2009, 07:09:52 pm I'm using adblock ...QuoteQuoteI see ... one more bug from windows 7's MSpaint -_-"I think it's rather problem of makeobj which accepts only subset of PNG format...No it's a problem with paint since I never asked it to use 32bits png. Quote Selected
Re: strange bug with making fences ... Reply #7 – December 24, 2009, 07:15:16 pm Quote from: gauthier – on December 24, 2009, 07:09:52 pmI'm using adblock ...Then please disable adblock for g.s.c or include g.s.c in the allowed sites list... Quote from: gauthier – on December 24, 2009, 07:09:52 pmNo it's a problem with paint since I never asked it to use 32bits png.I'm not agree. My experience says that It's the default behaviour of several painting programs. GIMP sometimes actives the alpha channel too, even you don't specify it. Quote Selected
Re: strange bug with making fences ... Reply #8 – December 24, 2009, 08:09:45 pm Yes, GIMP chooses automatically. If you use layers (or what are they called in English?) in GIMP, it automatically uses alpha channel / layer internally. And if you save that, you end up with 32bit format saves as well. So you have to use the "remove Alpha" function before saving, or ... the other function, whatever it's called in English (sorry, only have the Geman version available here) Quote Selected
Re: strange bug with making fences ... Reply #9 – December 25, 2009, 11:09:46 am QuoteThen please disable adblock for g.s.c or include g.s.c in the allowed sites list... Grin... doesn't work Quote Selected