graphic coding topic
Moderator: Graphics Moderators
graphic coding topic
This topic is for graphic artists who wouldn't be able to code their graphics to post them here(as well as for coders to get practice), because of the following reasons:
No set will accept it because of a) it is from a non-setted country or region
(South america, Africa, Mexico, Russia, China, etc.) b) It is a fictional graphic in which case it would not be coded otherwise or c) the person(s) running the set(s) which it would fit into have decided it is not worthy of being in the set(s), or the set(s) has run out of ID slots.
They may not be submitted if they fit under the following circumstances:
A. You have no permisssion whatsoever from the original author (for modifications).
B. It contains rude, sexual, derrogatory or offending images.
C. The purpose of the graphic is not possible under the patches limitations*
D. They are not an image, or they are but do contain, adware, spyware or malicious programs (there are viruses that pose as .jpeg's, and obviously this rule also applies for coders, who should take care when posting .exe's)
That is all.
*Such images may be posted as eyecandy, but spamming with such images or trying to change the topic to this will be dealt with by moderators
No set will accept it because of a) it is from a non-setted country or region
(South america, Africa, Mexico, Russia, China, etc.) b) It is a fictional graphic in which case it would not be coded otherwise or c) the person(s) running the set(s) which it would fit into have decided it is not worthy of being in the set(s), or the set(s) has run out of ID slots.
They may not be submitted if they fit under the following circumstances:
A. You have no permisssion whatsoever from the original author (for modifications).
B. It contains rude, sexual, derrogatory or offending images.
C. The purpose of the graphic is not possible under the patches limitations*
D. They are not an image, or they are but do contain, adware, spyware or malicious programs (there are viruses that pose as .jpeg's, and obviously this rule also applies for coders, who should take care when posting .exe's)
That is all.
*Such images may be posted as eyecandy, but spamming with such images or trying to change the topic to this will be dealt with by moderators
Decided to post it here to not open new topic.
I have problem with coding that results TTD patch crash. I have checked everything once more but i don't see the problem. Here are crash log and my .nfo file. Please help.
I have problem with coding that results TTD patch crash. I have checked everything once more but i don't see the problem. Here are crash log and my .nfo file. Please help.
Code: Select all
TTD V0019E000 Crash Log by TTDPatch 2.0.1 alpha 46 (Windows)
Exception C0000005 at 001B:0060E201
EAX EBX ECX EDX
026AF950 00000007 00000006 026AF924
ESI EDI ESP EBP
026B0F64 00457D5D 0007FED8 0007FF20
DS ES FS GS SS Flags
0023 0023 003B 0000 0023 00010207
FFFFFFFF FFFFFFFF 00000FFF ######## FFFFFFFF (Segment limits)
00CFF300 00CFF300 0040F300 ######## 00CFF300 (Access rights)
Bytes at DS:EIP
8B 44 B8 FC 2B C6 F7 D8 66 89 42 1E 58 66 50 83
Stack Dump:
0F05F836 00000002 0060E1E9 0060E416 00000024 00000000 00000001 0000002C
0269C011 0060F422 026B0F0E 026B0F64 026B0F44 0000002C 00000000 0000002C
00000000 00000000 0007FF88 0060E2CE 00000024 026B0F48 0007FF88 0007FF48
02A21014 026AF924 00000001 026AF950 0060E259 0060E331 00545E80 00600CD2
Handler Stack Dump (at 0023:0007FC88):
00003FFF 00000000 3FFF8000 00000000 00000000 0000003B 00000023 00000023
00457D5D 026B0F64 00000007 026AF924 00000006 026AF950 0007FF20 0060E201
0000001B 00010207 0007FED8 00000023 4020027F 07FF0000 773C6F17 0000001B
773C1C48 00000023 00001F80 0000FFFF 00000002 00380036 0000FA64 00000000
Patch flags:
DBFEFFFF BFBCFFDF E0EFFFED 00000FEF 00000000 00000000 0001B09F A0000000
00040000 00001000 003F01F4 009607CB 01900096 016D005A 76260280 13B14EC4
01E00280 05140258 0A28370A 19281388 5014140A 14501E14 1E14141E 003F3C1E
03200000 F0F0D0D0 EE1C6464 3264FF0A 01005A01 07800104 3F020112 1E200A22
32020501 01140A00 00000004
While processing GRF file: newgrf/pkpsetw.grf; Sprite number: 0024 (hex)
- Attachments
-
- pkpsetw.txt
- (2.41 KiB) Downloaded 94 times
Another problem that I have.....
After fixing first bugs I can run my .grf in TTD but from 5 different cargos I get one working good. Problem is in showing their graphics sets properly. First cargo - coal (default) - all sets works fine. Rest of cargos - iron ore, goods, wood and grain shows only last set (wagon is full).
Thanks in advance.
After fixing first bugs I can run my .grf in TTD but from 5 different cargos I get one working good. Problem is in showing their graphics sets properly. First cargo - coal (default) - all sets works fine. Rest of cargos - iron ore, goods, wood and grain shows only last set (wagon is full).
Thanks in advance.
- Attachments
-
- pkpsetw.txt
- (11.82 KiB) Downloaded 90 times
Re: graphic coding topic
The Tropicset would accept a well-drawn African locomotive, although I think it already has all the African locos of consequence. It would probably accept Mexican trains as well, and some South American.CyberBoy wrote:a) it is from a non-setted country or region
(South america, Africa, Mexico, Russia, China, etc.)
I've heard rumors that George is working on a Russian set.
That just leaves China, and someday maybe we'll have a Chinese set as an offshoot of the Japan set.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
The code looks right, are you sure you've been grfcodecing the right file? I'd need to look at the .grf file to see what's actually going on.Siema wrote:After fixing first bugs I can run my .grf in TTD but from 5 different cargos I get one working good. Problem is in showing their graphics sets properly. First cargo - coal (default) - all sets works fine. Rest of cargos - iron ore, goods, wood and grain shows only last set (wagon is full).
First I have made .pcx file, and coordinates in .nfo from the post before are for this .pcx file. Then I encoded them to pkpsetw.grf, run TTD and saw that there are all views for coal, and for other cargos wagon is always full with adequate cargo. When I decoded pkpsetw.grf in .pxc were all 25 sets but only with full wagons graphics.
Here are all files:
pkpsetw1.nfo -> from post before
pkpsetw1.pcx -> witch I made first
pkpsetw.grf -> GRF file
pkpstw.pcx -> pcx file from decoding
pkpsetw.nfo -> nfo file from decoding
I added '1' to names for post.
Here are all files:
pkpsetw1.nfo -> from post before
pkpsetw1.pcx -> witch I made first
pkpsetw.grf -> GRF file
pkpstw.pcx -> pcx file from decoding
pkpsetw.nfo -> nfo file from decoding
I added '1' to names for post.
- Attachments
-
- pkpsetw.rar
- (11.55 KiB) Downloaded 74 times
:lightbulb:
Siema, you decreased ypos without changing pcx files. That does not work. (known bug in grfcodec)
Siema, you decreased ypos without changing pcx files. That does not work. (known bug in grfcodec)
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Ah, I see the problem. GRFCodec can't correctly deal with decreases in the y coordinate of the same PCX file. It can only stay the same or increase.
So here's what you have to do:
So here's what you have to do:
- copy pkpsetw1.pcx to pkpsetw2.pcx
- whenever the y coordinate in your nfo decrease (e.g. from sprite 24 to 25, or 44 to 45), change the filename from ..1.pcx to ..2.pcx and then back
- then run grfcodec again
Another problem appeared quite quickly...
I'm in the same file, Action0 property 1D. As far as I know I must add bits - tried many configurations.
Want to have: Iron Ore (100), Wood (80), Grain (40), Goods (20) = 240,
but I get: Steel (200) and Grain (40) = it's also 240.
How to make them different? Isn't that in action3 when setting types of cargo?
I'm in the same file, Action0 property 1D. As far as I know I must add bits - tried many configurations.
Want to have: Iron Ore (100), Wood (80), Grain (40), Goods (20) = 240,
but I get: Steel (200) and Grain (40) = it's also 240.
How to make them different? Isn't that in action3 when setting types of cargo?
I have tried with .grf file in newgrf.cfg with "!" (clicking apply in game) and without and strarting new game and in existing one. Here is current nfo:
- Attachments
-
- pkpsetw.txt
- (7.51 KiB) Downloaded 64 times
Who is online
Users browsing this forum: No registered users and 13 guests