Search found 18 matches

by Loreroth
15 January 2021, 12:17
Forum: Developers
Topic: stock Item, changeItemsWeight.
Replies: 4
Views: 924

Re: stock Item, changeItemsWeight.

Ooooooohkay i know what the problem is. card_type itself is being interpreted as the name of the property that you want to set, rather than evaluating the variable. Try this.stTableCards.changeItemsWeight( { [card_type] : parseInt(card.location_arg) } ); More info here https://stackoverflow.com/ques...
by Loreroth
15 January 2021, 05:14
Forum: Developers
Topic: stock Item, changeItemsWeight.
Replies: 4
Views: 924

Re: stock Item, changeItemsWeight.

I don't see anything obvious, are you getting a console error "unknow item type" + type?
Also deck's location_arg is an integer so shouldn't need converting?
by Loreroth
15 January 2021, 04:46
Forum: Developers
Topic: game_box images.
Replies: 4
Views: 876

Re: game_box images.

My guess is that they are in the new project because its a ready to run copy. But yes it confused me at first as well. Descriptive text in the image might help, but it is in the docs at least.
by Loreroth
14 January 2021, 11:37
Forum: Developers
Topic: game_box images.
Replies: 4
Views: 876

Re: game_box images.

game_box180.png and game_box75.png are generated automatically from game_box.png when you hit the reload game images button in the control panel, you dont need to worry about them :)
by Loreroth
13 January 2021, 05:38
Forum: Developers
Topic: Where to slide to destroy something
Replies: 3
Views: 827

Re: Where to slide to destroy something

You can simply use null as the destination, it will then fade out and destroy the object in place.
by Loreroth
06 January 2021, 06:58
Forum: Developers
Topic: php Deck: createCards and location_arg
Replies: 2
Views: 516

Re: php Deck: createCards and location_arg

I'm not sure that you can set the location_arg through the array, the documentation only provides for setting it through the create cards method.

Code: Select all

createCards( $cards, $location='deck', $location_arg=null )
https://en.doc.boardgamearena.com/Deck# ... _component
by Loreroth
18 May 2020, 07:25
Forum: Developers
Topic: Cribbage project - Licensing - Beginner Advice
Replies: 5
Views: 1061

Re: Cribbage project - Licensing - Beginner Advice

Hi Mike and welcome to bga studio. Cribbage is public domain so there is no worries there. It's BGG page is here https://boardgamegeek.com/boardgame/2398/cribbage. (You will need the bgg number 2398 when filling out game information). We recently purged projects from the project list that had been i...
by Loreroth
15 May 2020, 23:13
Forum: Developers
Topic: Variable state description
Replies: 6
Views: 1373

Re: Variable state description

Ah, sorry I seem to have misunderstood.
by Loreroth
15 May 2020, 01:52
Forum: Developers
Topic: Code on Github/Gitlab/Bitbucket
Replies: 27
Views: 12673

Re: Code on Github/Gitlab/Bitbucket

Its a bit of a old post but using external version control systems like github by developers is fully allowed and encouraged. You are fully allowed to develop your projects with git. ftp is only needed to upload the code to bga's servers for testing and release. There are apps such as winscp that wi...
by Loreroth
15 May 2020, 01:36
Forum: Developers
Topic: Variable state description
Replies: 6
Views: 1373

Re: Variable state description

So for variables in strings to be interpreted the string needs to be done with double quotes " not single quotes ' .

You also don't need to translate a string with only a variable in it, 'description' => $description should be ok.

Go to advanced search