Bugs, feature request, notes and more
Posted: 15 Aug 2016, 23:26
Ok, hello everybody.
I already posted a message, but it was in the wrong section (the general slightlymagic forum). And, before i knew it i got answers to my questions.
So, here is the "old" link, but it's not the point of this topic.
viewtopic.php?f=2&t=18873
There isn't much interesting in it, except one bug, the first i listed : when you start the software, clean, fresh installation and you try to start a gauntlet with default settings you get an ArrayOutOfBoundsException. The reason is : you try to get a random element from an array
(with a code likely like this : array.get((int) (Math.random() * array.size())))
but it doesn't work for the special case where the array is empty.
I started to wrote my own cards and it's working pretty well for now. But, i found a little bug, and it's also a bug that exists in a real card.
When, on a card, you have both Cycling and Madness, when you look at the Oracle (the displayed text of the card) during a game the text is not ok.
If you look at it when you are not playing it is fine.
For my card i got this :
You should only have :
"draw a card. Cycling 2, Dredge 2 madness B"
(with \n between etc).
The whole text starting with "Discard" and ending with the name of the card shouldn't be there.
Especially, there is stuff about exile and none of these ability involve exile.
Maybe it's not a bug but a feature to match specific magic rules i never heard about. Note that the comportment of the card is perfectly ok and Forge doesn't give me the option to exile the card.
To test :
1) start a new game
2) get the card in your hand, either by draw or by adding it to your hand with the dev panel.
3) mouse over the card, you'll see a similar text.
My version of Forge is ... well, i have it for about 15 day.
This is for bugs.
About feature requests ... well, not so much, most things was here, in front of my eyes and i didn't see them.
So, as a dev : force Forge to reload a picture of a card. It's annoying to see a problem in the picture and reload the whole software just to take changes into account.
Of course, but i am sure that a lot of people already ask for something like that : add a card maker into the software. Not for scripts, one already exists and is pretty ok, but for the image. I use Magic Set Editor but it starts to be old and include several annoying things (when you export images they have white round corners, they are small and they have a thick (a full, actually) black border which cause Forge to double it, making a super-thick black border). But it's not that important.
Just for the record : i am working on a different quest mode, more a story mode actually. If you played soul calibur 1 you have the idea, like a very small "book where YOU are the hero". Impersonate a hero, do some heroic victory "à la" 300, follow the path of a hero of ancient time etc. Basically wall of text, pre-defined path and voilà. I am not saying it would be good, not even saying i will finish it, not even saying i will succeed in adding it into Forge. It will be written in Java, using swing and JComponent for rendering, XML for datas (except if you have something better). But the best thing would be something like shandalar in the old magic game. Harder to code, i know.
Now, THE question. As i make cards (custom cards) i try to prepare the terrain for when my brother will want to make his card. So, he has a specific ability and i try to implement it.
So, here is my questions for that :
Is it possible to make a spell like this : "blablabla copy target spell X times" with an arbitrary X ? I.e. is it possible to have something like a "for" loop from 0 to X ?
Is it possible to detect/count card with a custom keyword in it ? I mean : i handle the effect myself but i need to know if a card has a specific keyword, like a tag. For example : count cards with the keyword Foo in a player's hand. Is "strstr" of anything like that available in the card script language ?
Ok, it's late and i have to go.
See you.
I already posted a message, but it was in the wrong section (the general slightlymagic forum). And, before i knew it i got answers to my questions.
So, here is the "old" link, but it's not the point of this topic.
viewtopic.php?f=2&t=18873
There isn't much interesting in it, except one bug, the first i listed : when you start the software, clean, fresh installation and you try to start a gauntlet with default settings you get an ArrayOutOfBoundsException. The reason is : you try to get a random element from an array
(with a code likely like this : array.get((int) (Math.random() * array.size())))
but it doesn't work for the special case where the array is empty.
I started to wrote my own cards and it's working pretty well for now. But, i found a little bug, and it's also a bug that exists in a real card.
When, on a card, you have both Cycling and Madness, when you look at the Oracle (the displayed text of the card) during a game the text is not ok.
If you look at it when you are not playing it is fine.
For my card i got this :
You should only have :
"draw a card. Cycling 2, Dredge 2 madness B"
(with \n between etc).
The whole text starting with "Discard" and ending with the name of the card shouldn't be there.
Especially, there is stuff about exile and none of these ability involve exile.
Maybe it's not a bug but a feature to match specific magic rules i never heard about. Note that the comportment of the card is perfectly ok and Forge doesn't give me the option to exile the card.
To test :
1) start a new game
2) get the card in your hand, either by draw or by adding it to your hand with the dev panel.
3) mouse over the card, you'll see a similar text.
My version of Forge is ... well, i have it for about 15 day.
This is for bugs.
About feature requests ... well, not so much, most things was here, in front of my eyes and i didn't see them.
So, as a dev : force Forge to reload a picture of a card. It's annoying to see a problem in the picture and reload the whole software just to take changes into account.
Of course, but i am sure that a lot of people already ask for something like that : add a card maker into the software. Not for scripts, one already exists and is pretty ok, but for the image. I use Magic Set Editor but it starts to be old and include several annoying things (when you export images they have white round corners, they are small and they have a thick (a full, actually) black border which cause Forge to double it, making a super-thick black border). But it's not that important.
Just for the record : i am working on a different quest mode, more a story mode actually. If you played soul calibur 1 you have the idea, like a very small "book where YOU are the hero". Impersonate a hero, do some heroic victory "à la" 300, follow the path of a hero of ancient time etc. Basically wall of text, pre-defined path and voilà. I am not saying it would be good, not even saying i will finish it, not even saying i will succeed in adding it into Forge. It will be written in Java, using swing and JComponent for rendering, XML for datas (except if you have something better). But the best thing would be something like shandalar in the old magic game. Harder to code, i know.
Now, THE question. As i make cards (custom cards) i try to prepare the terrain for when my brother will want to make his card. So, he has a specific ability and i try to implement it.
So, here is my questions for that :
Is it possible to make a spell like this : "blablabla copy target spell X times" with an arbitrary X ? I.e. is it possible to have something like a "for" loop from 0 to X ?
Is it possible to detect/count card with a custom keyword in it ? I mean : i handle the effect myself but i need to know if a card has a specific keyword, like a tag. For example : count cards with the keyword Foo in a player's hand. Is "strstr" of anything like that available in the card script language ?
Ok, it's late and i have to go.
See you.