Jump to content

giantjeff

Modding Questions? Ask Them Here.

Recommended Posts

I am pretty good at it

Me too.

you would have to prompt for new stadium name or have a drop down list of all names

I know of no command line loc editor

and simple search and replace would work for the roster files but again you would have to prompt for the new names, and store all the info for the 124 teams and have the user select which team to switch out

Would that be difficult?

Also, how does the program work? (How does it retrieve the file name?).

So I can just use the variables later in any command?

Sorry for my stupidity, but I'm just not that C++ literate...what does the argument (void) in a function do?

How would I call the function and/or use it?

use something like this TWICE

one for orl

one for ord

the have the program run of the two files they selected

Orl

VOID DIALOG_FileOpen(VOID)


{


	OPENFILENAME openfilename;




	WCHAR szPath[MAX_PATH];


	WCHAR szDir[MAX_PATH];


	static const WCHAR szDefaultExt[] = { 'o','r','l',0 };


	static const WCHAR txt_files[] = { '*','.','o','r','l',0 };


	ZeroMemory(&openfilename, sizeof(openfilename));


	GetCurrentDirectory(SIZEOF(szDir), szDir);


	lstrcpy(szPath, txt_files);


	openfilename.lStructSize	   = sizeof(openfilename);


	openfilename.hwndOwner		 = Globals.hMainWnd;


	openfilename.hInstance		 = Globals.hInstance;


	openfilename.lpstrFilter	   = Globals.szFilter;


	openfilename.lpstrFile		 = szPath;


	openfilename.nMaxFile		  = SIZEOF(szPath);


	openfilename.lpstrInitialDir   = szDir;






	openfilename.Flags			 = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST |


		OFN_HIDEREADONLY;


	openfilename.lpstrDefExt	   = szDefaultExt;


	if (GetOpenFileName(&openfilename)) {


		if (FileExists(openfilename.lpstrFile))


			DoOpenFile(openfilename.lpstrFile);


		else


			AlertFileNotFound(openfilename.lpstrFile);


	}


}
ORD
VOID DIALOG_FileOpen(VOID)


{


	OPENFILENAME openfilename;




	WCHAR szPath[MAX_PATH];


	WCHAR szDir[MAX_PATH];


	static const WCHAR szDefaultExt[] = { 'o','r','d',0 };


	static const WCHAR txt_files[] = { '*','.','o','r','d',0 };


	ZeroMemory(&openfilename, sizeof(openfilename));


	GetCurrentDirectory(SIZEOF(szDir), szDir);


	lstrcpy(szPath, txt_files);


	openfilename.lStructSize	   = sizeof(openfilename);


	openfilename.hwndOwner		 = Globals.hMainWnd;


	openfilename.hInstance		 = Globals.hInstance;


	openfilename.lpstrFilter	   = Globals.szFilter;


	openfilename.lpstrFile		 = szPath;


	openfilename.nMaxFile		  = SIZEOF(szPath);


	openfilename.lpstrInitialDir   = szDir;






	openfilename.Flags			 = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST |


		OFN_HIDEREADONLY;


	openfilename.lpstrDefExt	   = szDefaultExt;


	if (GetOpenFileName(&openfilename)) {


		if (FileExists(openfilename.lpstrFile))


			DoOpenFile(openfilename.lpstrFile);


		else


			AlertFileNotFound(openfilename.lpstrFile);


	}


}

Share this post


Link to post
Share on other sites

I mainly work in power houses, and sometimes car plants

Actually sounds like a pretty interesting and high-challenge, high-reward job. Way better than what I'm currently wasting my life doing. (Managing a friggin' oil change).

Share this post


Link to post
Share on other sites

Might be hard to follow but is this what you want

BTW using tga files allow the alpha to be part of the main image it is the 5th channel (1st four being RBG, Red, Blue, & Green)

need directory layout


main/


main/big folder/


main/big folder/.o folder/


main/big folder/o original/


main/big folder/o updated/


main/big folder/cram32 folder/


main/big folder/cram32/tga folder/


main/big folder/cram32/updated dds folder/




step one


select stadium file


copy file to main folder


create big folder


depack stadium into big folder


rename stadium.big to stadium.bak


decompress stadium files


convert all orl & ord files to .o files and move to the main/big folder/o original/ folder


export cram32.fsh to the main/big folder/cram32 folder/ 


convert all dds file to tga to the main/big folder/cram32/tga folder/




between steps 1 & 2 the modder mods the files he wants changed




step 2 & 3


allow user to select tga to convert to dds (type and mips settings, read index to set default info) and put them in the main/big folder/cram32/updated dds folder/


allow user to select image and change size info in index file




step 4, 5 & 6


move main/big folder/cram32/updated dds folder/ files to main/big folder/cram32


delete main/big folder/cram32/updated dds folder/ & main/big folder/cram32/tga folder/


rebuld cram32.fsh and move to main/big folder/




delete all orl & ord files in main/big folder/


move main/big folder/o original/ to main/big folder/


main/big folder/o updated/ to main/big folder


covert all .o to .orl & .ord


del main/big folder/o updated/, main/big folder/o original/, and all .o files


compress correct files in main/big folder/


rebuild stadium.big and place in main/

what do tgas do?

and what about the ord to o? will you explain that?

Share this post


Link to post
Share on other sites

A void function is really just a subroutine. Specifying void as the return type means you dont include the final "return 0;" or whatever return value.

Share this post


Link to post
Share on other sites

what do tgas do?

and what about the ord to o? will you explain that?

TGA is just another image format, but it allows alpha to be a channel instead of a separate image

delete all orl & ord files in main/big folder/

move main/big folder/o original/ to main/big folder/

main/big folder/o updated/ to main/big folder

covert all .o to .orl & .ord

del main/big folder/o updated/, main/big folder/o original/, and all .o files

compress correct files in main/big folder/

rebuild stadium.big and place in main/

o2ord %%F %%~nF.ord %%~nF.orl

Share this post


Link to post
Share on other sites

Could I use it as a command-line program?

Yes it is a command line image tool, I have not played with it much It converts & resizes I do not know what else it does. I just ran across it yesterday

Share this post


Link to post
Share on other sites

TGA is just another image format, but it allows alpha to be a channel instead of a separate image

o2ord %%F %%~nF.ord %%~nF.orl

What are the &&'s and ~'s? They're the variables? Why are they declared like that? Also, is that the exact code I would type?

I'm just clueless when it comes to C++...if it were possible (I know that it's annoying and takes too much time), could you explain the code line by line?

Also, is the image tool better than imagemagick, in your opinion?

Share this post


Link to post
Share on other sites

o2ord %%F %%~nF.ord %%~nF.orl

That is a simple DOS string

%%F stands for the file name (8.3)

%%~nF stands for the file name (8.0)

so it is taking the file name, the cuting off the extension and adding either .ord (%%~nF.ord) or .orl (%%~nF.orl)

new image tool works fine it convert and resizes with one program but I do not know it it allows for overlaying one image on another

Share this post


Link to post
Share on other sites

o2ord %%F %%~nF.ord %%~nF.orl

That is a simple DOS string

%%F stands for the file name (8.3)

%%~nF stands for the file name (8.0)

so it is taking the file name, the cuting off the extension and adding either .ord (%%~nF.ord) or .orl (%%~nF.orl)

new image tool works fine it convert and resizes with one program but I do not know it it allows for overlaying one image on another

You said %%F stands for the filename...how does it know which filename...I'm really confused...if you ever have time, do you use AOL Instant Messenger or something like that? I think it would be easier to communicate there, because I'm like flooding the thread, and I still don't get what you're talking about...could you PM me your IM sn? I'm in school right now, so I can't talk on AIM, and I can't talk for the next like 14 hours either.

Share this post


Link to post
Share on other sites
is their a tutorial out explaining how to make overlays? can anyone explain how to do this or point me in the right dirrection
sorry to repost its just i really would like this to get answered

Share this post


Link to post
Share on other sites

I do not have any instant message program installed

Why don't you get one, please?

I find this a bad place to converse back and forth so frequently.

Also, can I use those batch file commands in C++?

Do I use the system("text you want to type");?

Share this post


Link to post
Share on other sites

Why don't you get one, please?

I find this a bad place to converse back and forth so frequently.

Also, can I use those batch file commands in C++?

Do I use the system("text you want to type");?

you run them the way you were the other command line programs just but this in front of the command

cmd /c

here is TY's example

#include <windows.h>




STARTUPINFO si;


PROCESS_INFORMATION pi;


ZeroMemory( &si, sizeof(si) );


si.cb = sizeof(si);


ZeroMemory( &pi, sizeof(pi) );




string commandstring = "cmd /c eazip.exe +a "" + modelspath + "" "tempc*"";




CreateProcess(NULL,LPSTR(newtextstring.c_str()),NULL,NULL,0,CREATE_NEW_CONSOLE,NULL,NULL,&si,&pi);


WaitForSingleObject( pi.hProcess, INFINITE );


CloseHandle( pi.hProcess );


CloseHandle( pi.hThread );

Share this post


Link to post
Share on other sites

you will have to play around with it a little bit

instead of %%F it may be just %F if not in a batch file

or you could include the batch file and just run that from your program

Share this post


Link to post
Share on other sites

you run them the way you were the other command line programs just but this in front of the command

cmd /c

here is TY's example

#include <windows.h>




STARTUPINFO si;


PROCESS_INFORMATION pi;


ZeroMemory( &si, sizeof(si) );


si.cb = sizeof(si);


ZeroMemory( &pi, sizeof(pi) );




string commandstring = "cmd /c eazip.exe +a "" + modelspath + "" "tempc*"";




CreateProcess(NULL,LPSTR(newtextstring.c_str()),NULL,NULL,0,CREATE_NEW_CONSOLE,NULL,NULL,&si,&pi);


WaitForSingleObject( pi.hProcess, INFINITE );


CloseHandle( pi.hProcess );


CloseHandle( pi.hThread );

I kind of understand it, though the code is confusing...

Also, why can't I just use system("")? Doesn't it do the same thing?

And kraw, could u get IM, or something like it?

And truthfully, kraw, do you think that my constant question barraging is getting annoying? Truthfully, do you think I should work on something else instead of programming, because I just can't understand it this quickly?

Share this post


Link to post
Share on other sites

haha most peope who realy undertand programming take years worth of classes to really get it it aint taking you so long i mean this is the simpeest barebones of programming but still you arnt moving so slow

Share this post


Link to post
Share on other sites

I kind of understand it, though the code is confusing...

Also, why can't I just use system("")? Doesn't it do the same thing?

And kraw, could u get IM, or something like it?

And truthfully, kraw, do you think that my constant question barraging is getting annoying? Truthfully, do you think I should work on something else instead of programming, because I just can't understand it this quickly?

I think and I'm really not sure but I think TY's uses multi threads

with system("") your program waits until it finished that command before going any farther, with TY's he is doing that in the background.

since your program has nothing to do until the command finished you can do it your way.

Like I said I think, I could be way off base. I just got back in to c++ a couple weeks ago after a 10 year layoff

anyway I can not install any program that adds DLL files to the system (IM client) on this computer, company rules

Truthfully I think you are trying to jump to far into the middle without learning the fundamentals. A book like Sam's learns C++ in 21 days would do you wonders

Share this post


Link to post
Share on other sites

if you download microsoft visual C++ 2005 Express trial and register it you can access very good e books from microsoft that help you alot in learning the basics of making a windows program

Share this post


Link to post
Share on other sites

I need a bit of help, i am swapping a logo using MVP Studio 2006 and when i try to put my alpha images the program gives me this error:

You Have not selected a proper alpha file FILE.

I don't understant what is going on my alphas are all the proper size and they are all 8 bit, is there something i am missing or doing wrong?

Share this post


Link to post
Share on other sites

Kraw, quick question, how many alphas should i have? Also are they different sizes? Sorry, first time doing this.

Share this post


Link to post
Share on other sites

I always had problems with that program, too. I use nfshtool instead to do logowork.

Share this post


Link to post
Share on other sites

Drag the logo .fsh file over nfshtool to view all the files inside. Edit them how you like, and then when you're done, double click on the index file and it rebuilds the .fsh.

Share this post


Link to post
Share on other sites

I always had problems with that program, too. I use nfshtool instead to do logowork.

OH

I've never used it personally, maybe it has a flaw

question KG

some logos have different sized images

it is possible to use a logo with the larger images for a different team?

Share this post


Link to post
Share on other sites

Drag the logo .fsh file over nfshtool to view all the files inside. Edit them how you like, and then when you're done, double click on the index file and it rebuilds the .fsh.

Or if you live on a command line like me:

Copy nfshtool to c:windows

and type

nfshtool file.fsh
to get the BMPs from the fsh file then in the file folder type
nfshtool index.fsh

to rebuild the file

Total Commander is great I tell yeah

Share this post


Link to post
Share on other sites

Kraw i am still trying to use Fuzz's "Team Creator" but i am not getting any results, cuz it gives me the error message everytime i try to load the first alpha, is there any chance that if i give you the logo i want to use you could hook me up with the alphas? I know i am asking for a lot and i will fully understand if you refuse to do so.

Share this post


Link to post
Share on other sites

Might I ask what logos you're trying to do?

And kraw, I have absolutely no idea what you were asking before.

Share this post


Link to post
Share on other sites

I don't really know what to send you so i am attaching the full size logo i am using for the team. Thanks.

Share this post


Link to post
Share on other sites

I am trying to use the Rutgers' Kinght. I still need to learn a lot more photoshop before i can make my own logos, LOL.

Share this post


Link to post
Share on other sites

I think and I'm really not sure but I think TY's uses multi threads

with system("") your program waits until it finished that command before going any farther, with TY's he is doing that in the background.

since your program has nothing to do until the command finished you can do it your way.

Like I said I think, I could be way off base. I just got back in to c++ a couple weeks ago after a 10 year layoff

To tell the truth, I didn't know about system(). When I searched for a way to do what I needed to do, I didn't come across it. I never learned about it in my c++ classes either.

My way does allow you to to multithread, but not when you have the WaitForSingleObject( pi.hProcess, INFINITE ); line in there.

Share this post


Link to post
Share on other sites

I am trying to use the Rutgers' Kinght. I still need to learn a lot more photoshop before i can make my own logos, LOL.

Your alpha seems fine but your main image was in the wrong format

Yours was 256 colors 8 bit

needed to be RGB 24 bit

check your email, I sent the fixed file

Share this post


Link to post
Share on other sites

I never learned about it in my c++ classes either.

What text book did your class use?

Share this post


Link to post
Share on other sites

Quick question, is there a 2x or 4x catchers mask (Hockey style) template available in the site, i've been searching for one but i've come up empty so far.

Share this post


Link to post
Share on other sites

Question: How can I make audio mods for players?

Share this post


Link to post
Share on other sites

What text book did your class use?

When I learned C++ I learned from a textbook called "Sam's Teach Yourself C++ in 24 hours".

Also I used "Microsoft Visual C++.net Step by Step Version 2003" when I was learning it.

I like vb, for .net programming, but I use C++ for other things. On a side note, I am quite impressed that kraw can code like that after a 10 year layoff, I'd probably need a month or so to get back in rhythm and code that. What kinda construction job requires C++? ;)

Share this post


Link to post
Share on other sites

What kinda construction job requires C++? ;)

None, I was looking at the popstation source code with iso compression and said to myself maybe this is what I want to be doing

Not PSP coding but just coding in general

Share this post


Link to post
Share on other sites

None, I was looking at the popstation source code with iso compression and said to myself maybe this is what I want to be doing

Not PSP coding but just coding in general

Yea, once I learned Java in every detail (relatively speaking, because that API is thousands of pages long, along with the source code...) I realized that this is what I hope to do some day. That's why I'm gonna major in that in college, and maybe take networking as well cause everyones pressuring me..."O look, it pays 150,000 a year, and you're still working with computers.", but it's just not the same...lol. I'm just glad that my high school offers me 3 periods a day of comp sci in A+, Circuitry, Databasing and all last year Java for 3 periods, and later network+, so I hopefully will be able to decide what I want to do exactly.

Share this post


Link to post
Share on other sites

kraw, can't you use portableapps or http://www.meebo.com for instant messaging if you can't install anything?

Also, I have Photoshop, Visual C++ 2005 and Visual Basic 2005, and I intend on learning at least two of them...

I have books on Visual C++ and Basic 2005 (it might be .NET...I have to check)...

Since Photoshop is probably the easiest, do you think that I should learn Photoshop first, then learn Visual Basic, then if I possibly have time (probably never), Visual C++ 2005?

Cuz isn't Visual Basic easier than Visual C++?

And if I learn photoshop, I can actually contribute, because lots of the downloads here require photoshop, and not really any advanced programming?

So which should I learn first? And then which of these should I learn first: Visual C++, or Visual Basic?

Maybe if I read the book, I could ask less questions in a year.

Also...how come you can't just ADD teams? Why do you have to REPLACE teams if you want to make a new team?

Share this post


Link to post
Share on other sites

VB is a lot easier to learn because it is the visual version of BASIC...which was designed to be the everymans language, based on it's acronym of Beginners All-purpose Symbolic Instruction Code. C++ is significantly more powerful, you can do a hell of a lot more with it. If It's Basic 2005, then it must be .net, cause they don't offer VB6 support or work anymore. If your looking to learn a language (I don't know how good a coder you are) then I would suggest VB, if you are experienced, and know an OOP language, then C++ is not a bad way to go. Since your asking to learn one of those two, I'm guessing you're more of a beginner, so I suggest VB.

Share this post


Link to post
Share on other sites

i think this thread would be incomplete without the all encompassing faq list.

Share this post


Link to post
Share on other sites

VB is a lot easier to learn because it is the visual version of BASIC...which was designed to be the everymans language, based on it's acronym of Beginners All-purpose Symbolic Instruction Code. C++ is significantly more powerful, you can do a hell of a lot more with it. If It's Basic 2005, then it must be .net, cause they don't offer VB6 support or work anymore. If your looking to learn a language (I don't know how good a coder you are) then I would suggest VB, if you are experienced, and know an OOP language, then C++ is not a bad way to go. Since your asking to learn one of those two, I'm guessing you're more of a beginner, so I suggest VB.

So do you think I should learn programming first or Photoshop first?

I won't be really able to contribute with programming here...

Share this post


Link to post
Share on other sites

Don't ask me...It is completely and wholey up to you. Do whatever your heart desires. I can't make this decision for you, I don't know anything about you, all I know about you is that you ask a lot of questions ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×