| |
You must sign in to post. | Galcon news application!!! :: Aug 25, 2010 @ 9:24am |
|---|
medeman

Joined: Mar 25, 2010 Posts: 1653 Location: Stay Hungry.Stay Foolish | I made a little news application in batch, and it's open source, so feel free to modify.
Version: 0.0.01 open beta.
Download:
<a href="http://dl.dropbox.com/u/6624880/news.zip">Application</a>
<a href="http://dl.dropbox.com/u/6624880/examplenews.zip">Example news</a>
To edit the news files, use notepad.exe on Windows.
Tested on: Windows XP - working;
Have questions? Ask.
This application may be extended so it includes strategy guides etc.
I wrote it in batch so nearly everyone knows how to modify it!
Mini documentation:
Installation:
1. Download the "news.zip" file and extract it (for example with http://www.7-zip.org/) to an empty folder.
2. Download the newest news file and extract this to the folder too (you can also use "examplenews.zip" to try out).
Update news:
1. Download the latest news.
2. Start "news.bat".
3. When you see command line ("#"), enter "del" to delete the old news.
4. Extract the new news to the application folder.
Read news:
1. When you are on the command line ("#"), enter a news ID (for example 2).
2. The news will show up (if this ID is valid).
Create news:
1. Decide how many news you want to make (for example 3). At the moment you can create up to 5.
2. Create a new file named "config*" with no extension (no .txt etc.), the * is the number of news (1-5).
3. The titles of the news are saved in "title*" files, you may create a "title1" file and edit it with notepad.exe or something else.
4. The news content (long text) is saved in the "news*" files, you may create a "news1" file which includes more information of what's in the "title1" file.
Example:
config2 [means that there are 2 news]
title1 [includes the title of the news], example content: "7 Grand Admirals!"
news1 [includes the news itself], example content: "Now there are 7 Grand Admirals at Fusion!"
title2 [includes the title of news ID2]
news2 [includes the content of news ID2]
5. Zip the files.
6. Upload them here.
Source code:
...post updated on Aug 26, 2010 @ 5:32am | | Re: Galcon news application!!! :: Aug 25, 2010 @ 12:46pm |
|---|
medeman

Joined: Mar 25, 2010 Posts: 1653 Location: Stay Hungry.Stay Foolish | Seems no one is interested... | | Re: Galcon news application!!! :: Aug 25, 2010 @ 12:46pm |
|---|
txgangsta

Joined: Mar 12, 2007 Posts: 4001 Location: Texas | I have a mac, sorry. | | Re: Galcon news application!!! :: Aug 25, 2010 @ 12:57pm |
|---|
medeman

Joined: Mar 25, 2010 Posts: 1653 Location: Stay Hungry.Stay Foolish | I have a Mac too, with OS X and XP | | Re: Galcon news application!!! :: Aug 25, 2010 @ 2:00pm |
|---|
txgangsta

Joined: Mar 12, 2007 Posts: 4001 Location: Texas | If it is a .exe program, I cannot run it without VNC. | | Re: Galcon news application!!! :: Aug 25, 2010 @ 6:09pm |
|---|
marky1991

Joined: Nov 8, 2009 Posts: 6651 Location: Douglasville, GA Deputy | Could you explain its function? I.e. what it does, how it's expected to be used, etc.
PS: Goto statements? Ew. Couldn't you just use ":call function_name"? It seems that you're just using goto to call what I think are functions anyway. I could be wrong, I've only written one batch file ever and I copied and pasted most of it. | | Re: Galcon news application!!! :: Aug 26, 2010 @ 5:34am |
|---|
medeman

Joined: Mar 25, 2010 Posts: 1653 Location: Stay Hungry.Stay Foolish | Could you explain its function? I.e. what it does, how it's expected to be used, etc.
PS: Goto statements? Ew. Couldn't you just use ":call function_name"? It seems that you're just using goto to call what I think are functions anyway. I could be wrong, I've only written one batch file ever and I copied and pasted most of it.
I could do this too, but I always use goto, I think it's easier :D.
I added a mini documentation. | | Re: Galcon news application!!! :: Aug 31, 2010 @ 9:38pm |
|---|
kingsiege

Joined: Aug 25, 2010 Posts: 1545 | Hey this doesnt sound half bad.... But I'm on a mac so.... post updated on Aug 31, 2010 @ 9:38pm |
You must sign in to post. |
|