Page 1 of 1

overwriting a project also overwrites words within the code

Posted: 30 January 2021, 17:30
by admiralspunky
The bounty hunting page instructs "If you want to help, you can create a new project then from this project's "manage game" page you can overwrite it with a copy of the official project you want to work on", so I did that, and now I have a copy of Hearts that I can modify - great, but on closer inspection of the game's code, I saw that I also overwrote every instance of "Hearts" with "TutorialHeartsAdmiral". Which screws up the variable names, and also gives me fun error messages like '${player_name} gets all tutorialheartsadmiral and the Queen of Spades: everyone else loose 26 points!' Sure, I could just do a Find and Replace on each file, but is there a proper set of steps to make a modifiable copy of an existing game without causing that problem in the first place?

Re: overwriting a project also overwrites words within the code

Posted: 30 January 2021, 22:54
by Een
Well, a project is a bunch of text files, so indeed copying a project with a new name relies on renaming files and replacing text :)
For most games the project name is distinctive and this goes smoothly, but indeed for some games with a more generic name, it can be messy. The worse I have seen was the "Toc" project...

Re: overwriting a project also overwrites words within the code

Posted: 02 February 2021, 19:13
by admiralspunky
Can you at least put a disclaimer on the Bounty Hunting page, so future contributors don't get caught unawares?

Re: overwriting a project also overwrites words within the code

Posted: 04 February 2021, 21:34
by Een
admiralspunky wrote: 02 February 2021, 19:13 Can you at least put a disclaimer on the Bounty Hunting page, so future contributors don't get caught unawares?
Actually that was the reason for mentioning "or request access to the official project from studio@boardgamearena.com in some special cases" I think