It is currently 12 Sep 2025, 19:16
   
Text Size

Cleanup old functions/variables

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Cleanup old functions/variables

Postby silly freak » 20 May 2012, 16:15

about forge.properties:

the file name forge.properties is hardcoded, but in principle all of main.properties could just be moved into forge properties. My idea was to minimize the amount of data in a hardcoded location, to give the user the choice to basically move everything anywhere he wants (except for that one line of necessary code).

Of course, most users prefer to just download, unpack and play, so the gain is marginal. If you find it more comfortable to get rid of main.properties, go for it ;)
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Cleanup old functions/variables

Postby Doublestrike » 21 May 2012, 11:28

Chris H. wrote:Oh, it looks like the current project no longer has a /res/images/ folder. This folder has two subdirectories named /images/icons/ and /images/deckeditor/.
OK, I removed the reference in main.properties. Downloadable content is now consolidated in the 'pics/' directory.

Users may need to be alerted of this, brainstorming/expanding on your fluff line if you need it Chris:

The res/images/icons/ folder has been moved to res/pics/icons/. This folder holds the quest opponent icons, bazaar pets, and bazaar plants. If you have downloaded this content, it will still work, but the folder must be moved on your computer.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: Cleanup old functions/variables

Postby Doublestrike » 21 May 2012, 12:21

OK thanks sillyfreak, looks like it will stay where it is for now.

However, I have consolidated main.properties, forge.preference, and editor.preferences into one directory: res/preferences. The two .preference files should transfer no problem without losing their current values. Main.properties will need to be updated by hand.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: Cleanup old functions/variables

Postby Chris H. » 21 May 2012, 12:36

Doublestrike wrote:OK, I removed the reference in main.properties. Downloadable content is now consolidated in the 'pics/' directory.

Users may need to be alerted of this, brainstorming/expanding on your fluff line if you need it Chris:
 
Thank you. I updated the changes.txt and the readme.txt files and our minimal docs should be up to date.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Cleanup old functions/variables

Postby friarsol » 23 May 2012, 01:47

We definitely need very explicit instructions about this preferences change. I have all of my pics in a different folder so I can share them between working builds and fresh builds. And it was definitely confusing loading in today and having 0 pictures loaded in.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Cleanup old functions/variables

Postby Doublestrike » 23 May 2012, 12:11

Actually, I think I can add the same code to make the move easy for main.properties also. Let me whack it in there and see how it goes.

EDIT - Didn't go so good. Will try again later.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 43 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 43 users online :: 0 registered, 0 hidden and 43 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 43 guests

Login Form