overwriting a project also overwrites words within the code

Game development with Board Game Arena Studio
Post Reply
User avatar
admiralspunky
Posts: 44
Joined: 06 September 2013, 23:18

overwriting a project also overwrites words within the code

Post 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?
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: overwriting a project also overwrites words within the code

Post 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...
User avatar
admiralspunky
Posts: 44
Joined: 06 September 2013, 23:18

Re: overwriting a project also overwrites words within the code

Post by admiralspunky »

Can you at least put a disclaimer on the Bounty Hunting page, so future contributors don't get caught unawares?
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

Re: overwriting a project also overwrites words within the code

Post 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
Post Reply

Return to “Developers”