It is currently 11 Sep 2025, 18:02
   
Text Size

MTG - CONVOKE-CARDS PACK 35 CARDS

Moderator: CCGHQ Admins

Re: MTG - CONVOKE-CARDS PACK 32 CARDS

Postby RiiakShiNal » 22 Oct 2014, 22:47

NeoAnderson wrote:I would add a function for yhe AI choose.
I would search for the greatest number of type onto battlefield if = 0 i would search library then the other zones.
This because i am not sure the Ai could make reasonable choices.
If this is the case then maybe you should look at my DotP 2013 implementation which has functions specifically for that.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: MTG - CONVOKE-CARDS PACK 32 CARDS

Postby NeoAnderson » 22 Oct 2014, 23:33

RiiakShiNal wrote:
NeoAnderson wrote:I would add a function for yhe AI choose.
I would search for the greatest number of type onto battlefield if = 0 i would search library then the other zones.
This because i am not sure the Ai could make reasonable choices.
If this is the case then maybe you should look at my DotP 2013 implementation which has functions specifically for that.
Thank you Riiak,
I already made basic functions, are easy to code.
If you remember some months ago we had a discussion about this kind of cards...i made a type function for Xenograf, now i am using that function, i want to use keyboard typing, and for the AI i use a simple approach :
1. If the effect is positive ( we pass a value to the main function 1=positive, 2 negative) search for Max creatures onto battlefield, if the are more than a subtype then choose a random type between these types. If there are no creature subtypes to choose then search onto ZONE_ANYWHERE.
2. If the effect is negative do the same thing above, but for creature subtypes controlled by opponents!

I think could be an acceptable basic way to act.
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 32 CARDS

Postby RiiakShiNal » 23 Oct 2014, 01:02

NeoAnderson wrote:Thank you Riiak,
I already made basic functions, are easy to code.
If you remember some months ago we had a discussion about this kind of cards...i made a type function for Xenograf, now i am using that function, i want to use keyboard typing, and for the AI i use a simple approach :
1. If the effect is positive ( we pass a value to the main function 1=positive, 2 negative) search for Max creatures onto battlefield, if the are more than a subtype then choose a random type between these types. If there are no creature subtypes to choose then search onto ZONE_ANYWHERE.
2. If the effect is negative do the same thing above, but for creature subtypes controlled by opponents!

I think could be an acceptable basic way to act.
I had made mine a bit more generic (the card had to do a little more work) in that I allowed the card more freedom to determine what zones for which players should be searched. For example for a card that reduces the cost of creature type spells the player casts, it doesn't necessarily make sense to search the battlefield, it makes more sense to search hand and library first.

It also doesn't make sense to search opponents' hands and/or libraries because the player isn't supposed to know what is in there so searching ZONE_ANYWHERE on an opponent for an AI is just cheating. Players have to guess what is in their opponents' hands and libraries.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: MTG - CONVOKE-CARDS PACK 32 CARDS

Postby NeoAnderson » 23 Oct 2014, 01:06

RiiakShiNal wrote:
NeoAnderson wrote:Thank you Riiak,
I already made basic functions, are easy to code.
If you remember some months ago we had a discussion about this kind of cards...i made a type function for Xenograf, now i am using that function, i want to use keyboard typing, and for the AI i use a simple approach :
1. If the effect is positive ( we pass a value to the main function 1=positive, 2 negative) search for Max creatures onto battlefield, if the are more than a subtype then choose a random type between these types. If there are no creature subtypes to choose then search onto ZONE_ANYWHERE.
2. If the effect is negative do the same thing above, but for creature subtypes controlled by opponents!

I think could be an acceptable basic way to act.
I had made mine a bit more generic (the card had to do a little more work) in that I allowed the card more freedom to determine what zones for which players should be searched. For example for a card that reduces the cost of creature type spells the player casts, it doesn't necessarily make sense to search the battlefield, it makes more sense to search hand and library first.

It also doesn't make sense to search opponents' hands and/or libraries because the player isn't supposed to know what is in there so searching ZONE_ANYWHERE on an opponent for an AI is just cheating. Players have to guess what is in their opponents' hands and libraries.
Can you post to me the link of that version? I would take a look to your code. About the opponents we thought the same, in fact i was changing the code to search only into visible zones! :wink:
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 32 CARDS

Postby RiiakShiNal » 23 Oct 2014, 01:35

NeoAnderson wrote:Can you post to me the link of that version? I would take a look to your code. About the opponents we thought the same, in fact i was changing the code to search only into visible zones! :wink:
It is in my DotP 2013 mod though it is split amongst several different LOL files and it doesn't have the same amount of documentation I've been doing for my releases in DotP 2014 or you could look at the programming talk thread for it which has it all together. The functions you'll probably be most interested in are:
  • RSN_CountPlayerCardsOfTypeAndSubTypeInZone() - RSN_COUNTING.LOL
  • RSN_FindPlayerCreatureTypesInZone() - RSN_COUNTING.LOL
  • RSN_FindPlayerCreatureTypesInZones() - RSN_COUNTING.LOL

My actual choosing functions are in RSN_CHOOSING.LOL. For an example card see Door of Destinies (DOOR_OF_DESTINIES_152526.XML) or Patriarch's Bidding (PATRIARCHS_BIDDING_26747.XML).

Most of the functions are pretty small and easy to follow compared to the massive amounts of code I've written for DotP 2014.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: MTG - CONVOKE-CARDS PACK 32 CARDS

Postby NeoAnderson » 23 Oct 2014, 01:47

RiiakShiNal wrote:It is in my DotP 2013 mod though it is split amongst several different LOL files and it doesn't have the same amount of documentation I've been doing for my releases in DotP 2014 or you could look at the programming talk thread for it which has it all together. The functions you'll probably be most interested in are:
  • RSN_CountPlayerCardsOfTypeAndSubTypeInZone() - RSN_COUNTING.LOL
  • RSN_FindPlayerCreatureTypesInZone() - RSN_COUNTING.LOL
  • RSN_FindPlayerCreatureTypesInZones() - RSN_COUNTING.LOL

My actual choosing functions are in RSN_CHOOSING.LOL. For an example card see Door of Destinies (DOOR_OF_DESTINIES_152526.XML) or Patriarch's Bidding (PATRIARCHS_BIDDING_26747.XML).

Most of the functions are pretty small and easy to follow compared to the massive amounts of code I've written for DotP 2014.
Thanks tomorrow i will take a look to your code. :wink:
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 32 CARDS

Postby NeoAnderson » 23 Oct 2014, 16:22

UPDATED :
REV 1.1 ADDED NEW CARDS : Obelisk of Urd, Stain the Mind, Return to the Ranks.
Added custom functions for typing "Choose creature type" cards.
Added "name non-land" function from sumomole mod, i renamed the function just to let some user who don't have sumo's mod installed to play without it. Anyway the function is the same just other name, i think also that the original function was made by Firemind.


HOW TO USE CUSTOM TYPING FUNCTION :
You can type any of the know types of MTG, you can type into 5 different languages : English, French, Spanish, German, Italian.
You can type into another language also if your game language is different. (For Example you are playing in English, you can also use French, Italian, German or Spanish words to define the type).
Each accented letter must be replaced with the corresponding letter without an accent.
Examples :
"à" must be "A"
"é" must be "E"
"ä" must be "A"
You will see the word you are typing onto "OK" button, when you have done just push the "Ok" button. If the type is not a valid type the process will be repeated.
If push previous button onto first letters page selection, you will be redirect to the last letters page selection, if you push next onto last page you will be redirect to the first page, in this way will be quicker to move around the letters.


SOME CREDITS :
Special Thanks to RiiakShiNal for his great and always useful Functions.
Thanks to Firemind and Sumomole for the "name a non-land" function
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby fallenangle » 25 Oct 2014, 02:49

I just used the card Return to the Ranks and it worked, but after exiting the game, I got the following error:

[lua] [string "NEO_CONVOKE_MANAGER_TITLE (PLAY_TIME_ACTION)~0x00000317"]:4: attempt to call global 'UpdateWhiteCostValue' (a nil value)

I've gotten this error before when using other convoke cards, and am not sure what could be causing it. Do you have any idea, Neo?
fallenangle
 
Posts: 319
Joined: 20 Jul 2013, 02:31
Has thanked: 73 times
Been thanked: 41 times

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby NeoAnderson » 25 Oct 2014, 03:21

fallenangle wrote:I just used the card Return to the Ranks and it worked, but after exiting the game, I got the following error:

[lua] [string "NEO_CONVOKE_MANAGER_TITLE (PLAY_TIME_ACTION)~0x00000317"]:4: attempt to call global 'UpdateWhiteCostValue' (a nil value)

I've gotten this error before when using other convoke cards, and am not sure what could be causing it. Do you have any idea, Neo?
UpdateWhiteCostValue() is my own function, included into D14_NEO_MANA_COST_FUNCTIONS.LOL file.
Honestly i never had a script error from this functions, so my suggestion is to better check which condition create this situation, i would try to understand which could be the interactions that create this issue. Until now i get 0 error scripts from Convoke cards, so if you post to me more details i can try to repeat the situation and try to understand.
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby RiiakShiNal » 25 Oct 2014, 13:42

That error basically states that it could not find the function UpdateWhiteCostValue() which either means the function file containing it did not load (because of a syntax error or something) or that function is not present in the function files (for example a typo somewhere).
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby NeoAnderson » 25 Oct 2014, 16:52

RiiakShiNal wrote:That error basically states that it could not find the function UpdateWhiteCostValue() which either means the function file containing it did not load (because of a syntax error or something) or that function is not present in the function files (for example a typo somewhere).
That function is exactly like other functions for other colours, i used for all convoke cards and is also used directly into convoke cards code.
As i said it works without issues, the only thing i can think, is that you have unpacked the wad and you tried to edit some files.
So be sure you don't have duplicates of this function and be sure you don't have modified any of these functions.
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby NeoAnderson » 26 Oct 2014, 01:06

REV 1.2 UPGRADED FUNCTIONS : Custom typing function now is able to detect the subgroup of available choices while you are digiting the subtype. When there will be less then 8 results (enough for one multiple choice) you will be prompted to choose directly which type you are looking for.
IMPORTANT, THE CHOICES WILL CONSIDER EACH OF THE 5 LANGUAGES SUPPORTED.
For example you type : "NI" you will get these availble choices : (nightmare - Nightstalker - Nymph - Ninja)
If we consider only the english text the choices should be 3 (nightmare - Nightstalker - Ninja) but because into Spanish and Italian "Nymph" is translated as "Ninfa" also this result will be available.
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby Alchapwn » 26 Oct 2014, 17:38

I too was having the same issue as above. I've unpacked and looked through so many wad files and the only other files i have downloaded with "NEO_MANA_COST_FUNCTIONS.LOL" is the "DATA_DLC_VXP.wad" so i removed it and repacked it. Your "NEO_KTK.wad" also has this .LOL file and i also removed and repacked. Worked a treat! I am now given the option of tapping creatures to pay for mana costs.

My next problem is with the Obelisk of Urd. I'm not prompted to name a creature type when the card enters the battlefield. I get the following error in the log:

[lua] [string "Content\Functions\NEO_CHOOSE_TYPE_FUNCTIONS.LOL"]:103:
parameter mismatch or too few parameters [expected bzS32]

I've tried to look at it, but I am a n00b at coding anything so if you dont mind, could you have another look and see what could possibly be the problem?

Thanks for all the great work you've done thus far. It really is quite amazing!
Alchapwn
 
Posts: 2
Joined: 26 Oct 2014, 17:09
Has thanked: 1 time
Been thanked: 1 time

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby NeoAnderson » 26 Oct 2014, 23:54

Alchapwn wrote:I too was having the same issue as above. I've unpacked and looked through so many wad files and the only other files i have downloaded with "NEO_MANA_COST_FUNCTIONS.LOL" is the "DATA_DLC_VXP.wad" so i removed it and repacked it. Your "NEO_KTK.wad" also has this .LOL file and i also removed and repacked. Worked a treat! I am now given the option of tapping creatures to pay for mana costs.

My next problem is with the Obelisk of Urd. I'm not prompted to name a creature type when the card enters the battlefield. I get the following error in the log:

[lua] [string "Content\Functions\NEO_CHOOSE_TYPE_FUNCTIONS.LOL"]:103:
parameter mismatch or too few parameters [expected bzS32]

I've tried to look at it, but I am a n00b at coding anything so if you dont mind, could you have another look and see what could possibly be the problem?

Thanks for all the great work you've done thus far. It really is quite amazing!
I am sorry to hear there are some issues, probably it is caused by a duplication of functions inside differents wad, so the game cannot properly load the right function.
Anyway i renamed the .lol files inside the convoke wad i have removed old lol from my function folder and i tested the wad and it works. NO script log.
So try to download the rev 1.3 i have renamed all the included functions with D14_NEO_CVK prefix..hope this will help.
At line 103 of that function there is just a simple make chest command with a constant value, so probably the game didn't recognize the constant assignment.
Please test the last file and let me know if the issue is solved.
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: MTG - CONVOKE-CARDS PACK 35 CARDS

Postby Alchapwn » 27 Oct 2014, 02:44

NeoAnderson wrote:I am sorry to hear there are some issues, probably it is caused by a duplication of functions inside differents wad, so the game cannot properly load the right function.
Anyway i renamed the .lol files inside the convoke wad i have removed old lol from my function folder and i tested the wad and it works. NO script log.
So try to download the rev 1.3 i have renamed all the included functions with D14_NEO_CVK prefix..hope this will help.
At line 103 of that function there is just a simple make chest command with a constant value, so probably the game didn't recognize the constant assignment.
Please test the last file and let me know if the issue is solved.
Fantastic! You, sir, are a gentleman and a scholar. I just tried it again and lo and behold, it worked. HUZZAH! Keep up the great work NEO, I love your mods!
Alchapwn
 
Posts: 2
Joined: 26 Oct 2014, 17:09
Has thanked: 1 time
Been thanked: 1 time

PreviousNext

Return to 2014

Who is online

Users browsing this forum: No registered users and 19 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 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 19 guests

Login Form