NFOGRF (Jeb's GRF program)
Moderator: Graphics Moderators
I have been working on a GRF reader. It is about 95% accurate and
about 65% done. It is written in VB and Any one who would like to
see it, just let me know.
I do need some help in understanding some of the code.
I've tryed ot inteperate each action as per the NewGrf txt file.
Can do Action 0,1,2,3,4,6,7,8,A,B,C & D. Lets you see things in
Plain English.
Goal is to continue to add refinement to explaining Actions.
Adding Editing actions.
Writting a NFO file from the Grf.
Displaying the Real Sprites (akin WinGrf).
If interested Post message.
JEB
Ps Also will read NFO files. and I do have a version I wrote in
Q Basic that will edit.
about 65% done. It is written in VB and Any one who would like to
see it, just let me know.
I do need some help in understanding some of the code.
I've tryed ot inteperate each action as per the NewGrf txt file.
Can do Action 0,1,2,3,4,6,7,8,A,B,C & D. Lets you see things in
Plain English.
Goal is to continue to add refinement to explaining Actions.
Adding Editing actions.
Writting a NFO file from the Grf.
Displaying the Real Sprites (akin WinGrf).
If interested Post message.
JEB
Ps Also will read NFO files. and I do have a version I wrote in
Q Basic that will edit.
*scratches head*
How'd I manage to miss this post?
Anyway, I would like to see this. Source or executable are fine (I expect), as I have Visual Studio .NET.
How'd I manage to miss this post?
Anyway, I would like to see this. Source or executable are fine (I expect), as I have Visual Studio .NET.
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
i certainly would. i am thinking of learning how to create my own graphics. I live in a town which had one of the biggest marshalling yards in the world, so there are lots of resources available to me to obtain images. Although the yards were scrapped years ago, a new cargo transfer area has been made recently. Can't really get close enough to take pictures though 

---------------------------
Warspite
Aspiring Poet
Warspite
Aspiring Poet
What version of Windows/VB/etc. are you using? The executable complained about no VBRUN300.DLL, then no CMDIALOG.VBX. Now that I have both of those, the error message, in full, is "Path not found". I tried to open the .MAK file, and discovered that VS.NET can't read it.JEB wrote:<mywork.rar>
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
visual basic 3
I didn't realize that cmddialog I used wouldn't work in
VB6. I loaded these in VB6 and that's how I found
out. I don't own VB6 so its hard to work out the
differances when I discover them. I think I might be
able to get it in VB6 and then it will be converted.
Except the cmddialog would have to be upgraded
to the VB6 version.
The exe version works on my system and the one
I use at work. So I figured it would work okay.
I did forget about the vbrun300.dll file.
I'm starting to go back to my QB45 program so I can
start adding editing to the reader. I can do that
my QB program. I found a bug in when I got it out
and was testing it. Otherwise it worked yet.
Well hope that helps. Otherwise if you think of
anything else let me know. If you would like to
see the QB program I will upload it too.
JEB
I didn't realize that cmddialog I used wouldn't work in
VB6. I loaded these in VB6 and that's how I found
out. I don't own VB6 so its hard to work out the
differances when I discover them. I think I might be
able to get it in VB6 and then it will be converted.
Except the cmddialog would have to be upgraded
to the VB6 version.
The exe version works on my system and the one
I use at work. So I figured it would work okay.
I did forget about the vbrun300.dll file.
I'm starting to go back to my QB45 program so I can
start adding editing to the reader. I can do that
my QB program. I found a bug in when I got it out
and was testing it. Otherwise it worked yet.
Well hope that helps. Otherwise if you think of
anything else let me know. If you would like to
see the QB program I will upload it too.
JEB
- Born Acorn
- Tycoon
- Posts: 7596
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
There should be no problem doing that, will do so next time.
you should be able to easily find it anywhere on the net.
Also it is just a GRF/NFO reader at the moment. Reads the
file and gaves the meaning in english. I am plannig on adding
editing to make it a GRF/NFO alter program. Help from others
explanning various items would help. It only does trains and
vehicles now. If things go well I hope to make do other grf files
too. Hey I'm just learning this VB stuff.
JEB
you should be able to easily find it anywhere on the net.
Also it is just a GRF/NFO reader at the moment. Reads the
file and gaves the meaning in english. I am plannig on adding
editing to make it a GRF/NFO alter program. Help from others
explanning various items would help. It only does trains and
vehicles now. If things go well I hope to make do other grf files
too. Hey I'm just learning this VB stuff.
JEB
Although a good idea, that is not the problem, nor is cmdialog.vbx. I found both of those. What I have now is an error message that contains no useful information, and will not go away, even if I put the .exe in a fully 8+3 compatible path.Born Acorn wrote:can't you just like upload your vbrun300.dll with the grf maker?
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
- orudge
- Administrator
- Posts: 25217
- Joined: 26 Jan 2001 20:18
- Skype: orudge
- Location: Banchory, UK
- Contact:
The "Path not found" error is because the program is trying to read a text file, the path of which is hard-coded to c:\grfcodec. I can't remember the specifics, I looked at the code last night, but if you alter that, it should work.DaleStan wrote:What version of Windows/VB/etc. are you using? The executable complained about no VBRUN300.DLL, then no CMDIALOG.VBX. Now that I have both of those, the error message, in full, is "Path not found". I tried to open the .MAK file, and discovered that VS.NET can't read it.JEB wrote:<mywork.rar>
- Born Acorn
- Tycoon
- Posts: 7596
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
Create an empty file "C:\grfcodec\TTDvehs.txt".
@JEB: Looks promising, but can that absolute path please die? It'd also be nice to either provide a real version of the file, a pointer to a place where it can be downloaded, or instructions to create the file.
@JEB: Looks promising, but can that absolute path please die? It'd also be nice to either provide a real version of the file, a pointer to a place where it can be downloaded, or instructions to create the file.
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
Sorry about not telling you more. Actually didn't think it mattered? Will get back to work on the code. Try to fix it better. I've been going over my
QB version trying to get a couple bugs fixed. I needed to fix it to make
it easier to edit the action 4 names for my sets. Than I will fix it to edit
the action 8 data. So it already works as a alter/edit program, if you
don't mind Dos. That is the code I will then put in the VB program. Still
learning how to do this. I experiment a little and learn how to get the
code to do what I want.
don't know how to make the download link you mentioned. Never needed
to know that.
Thanks for the help
any help is very appreciated.
I have all my grf work in a folder named grfcodec and a sub folder
named sprites which contains nfo and pcx files.
I do all my coding with grfmenu a program I made to decode and encode
with.
JEB
I just looked over my code and realized what happened. The file is a
data file I used to load the names of the orginal TTD vehicles and trains
etc. I had forgotten about it. If this was a QB I would have used data
statements. ( oh thats right I did use data in QB for that) Will adjust and
upload new version this weekend.
Does anyone know if there is an equivalent to DATA in VB?
JEB
QB version trying to get a couple bugs fixed. I needed to fix it to make
it easier to edit the action 4 names for my sets. Than I will fix it to edit
the action 8 data. So it already works as a alter/edit program, if you
don't mind Dos. That is the code I will then put in the VB program. Still
learning how to do this. I experiment a little and learn how to get the
code to do what I want.
don't know how to make the download link you mentioned. Never needed
to know that.
Thanks for the help
any help is very appreciated.
I have all my grf work in a folder named grfcodec and a sub folder
named sprites which contains nfo and pcx files.
I do all my coding with grfmenu a program I made to decode and encode
with.
JEB
I just looked over my code and realized what happened. The file is a
data file I used to load the names of the orginal TTD vehicles and trains
etc. I had forgotten about it. If this was a QB I would have used data
statements. ( oh thats right I did use data in QB for that) Will adjust and
upload new version this weekend.
Does anyone know if there is an equivalent to DATA in VB?
JEB
I was able to get the program into VB6, made some quick fixes,
changed the ttdveh file to dat from txt. Still needs a folder called
grfcodec for it to be in. Will work on fixing that. I use a folder
nameded grfcodec for all my grfs work that is why the program
was coded that way. Wanted to get this up so the source code
will be uploaded later. Also included the TTDveh file this time.
I hope this works for you now! I was very upset that it caused
so much trouble. I went back and checked my orginal effort
and also started having different problem, so I got on to my
computer at work at lunch and converted it to VB6.
It should do both grfs and nfo files..
Again any information that will help me create a better interpetation
of the actions and how they work would be most appreciated.
JEB
changed the ttdveh file to dat from txt. Still needs a folder called
grfcodec for it to be in. Will work on fixing that. I use a folder
nameded grfcodec for all my grfs work that is why the program
was coded that way. Wanted to get this up so the source code
will be uploaded later. Also included the TTDveh file this time.
I hope this works for you now! I was very upset that it caused
so much trouble. I went back and checked my orginal effort
and also started having different problem, so I got on to my
computer at work at lunch and converted it to VB6.
It should do both grfs and nfo files..
Again any information that will help me create a better interpetation
of the actions and how they work would be most appreciated.
JEB
- Attachments
-
- nfogrf1.rar
- (24.86 KiB) Downloaded 445 times
-
- TTDvehs.rar
- (1.75 KiB) Downloaded 370 times
Last edited by JEB on 13 Nov 2004 14:14, edited 2 times in total.
Who is online
Users browsing this forum: piratescooby and 12 guests