Angel
  • Angel
  • Member Topic Starter
2012-12-14T06:07:42Z
Hi everyone, I'm new to the YGOPRO system and since I discovered it, I got really excited about this project, not only because it's automatic, but also because you can add your own cards just by programming them.

Now, I'm not familiarized with the LUA languange but I think I can learn what is needed. And about that "github" website, I didn't know about it before but as far as I know that's the site where the original code comes from and checking around the YGOPRO project of Fluorohydride I think it would be hard to convince them to merge a project with custom cards with the original cards since he hasn't accepted some "pull requests", so I was thinking in creating a project with custom cards, and it's not really difficult with the "fork" option in the site.

https://github.com/kyogre123/ygopro  that's where "my version of YGOPRO" is stored, and it's just a copy of the original plus any change I could do (if I'm not wrong), so we could upload any .lua files of custom cards and an edited version of the cards.cdb file there, to later include them in the system.

I don't know if this idea is already done, but it would be nice to play with custom cards created by different users in the community and not just testing them in your own computer. So tell me what do you think 🙂 (pardon my English by the way).

http://www.ygopro.co/tab...to-YGOPro--Tutorial.aspx 

Here is some very basic stuff (No info about LUA programming) and for this part, the above tutorial would work better:


Here are some info I'm learning as I'm trying to create some cards:

Basic Syncro:
Quote:

--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()


"nil" is like any monster, and the "1" here is saying the minimum non-synchro monsters.
EnableReviveLimit makes the card able to be special summoned after a success synchro summon.

Requerimend Syncro:
Quote:

--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x33),aux.NonTuner(nil),1)
c:EnableReviveLimit()



In this, "aux.FilterBoolFunction(Card.IsSetCard,0x33)" is a condition that says only tuner monster of x-archetype, in this case 0x33 (hexadecimal)=57=BlackWing.

You can use FilterBoolFunction to filter other kind of cards:
J_BYYX
2012-12-14T09:00:39Z
Well... We do have Anime mode. So i see no problem with Custom Card mode.
Angel
  • Angel
  • Member Topic Starter
2012-12-14T09:28:28Z
Originally Posted by: J_BYYX 

Well... We do have Anime mode. So i see no problem with Custom Card mode.



Hey, thanks for your support.

Now, to try to help with this topic, I'll try to add information about how to program cards in this system.
Jackmoonward
2012-12-14T12:59:27Z
This seems oddly similar to my tutorial on how to add cards. Nevertheless I'm happy to see someone else help out in the community. By the alias thing you were confused about, if you have a card like Blue-Eyes White Dragon, which has like 5 different card arts, notice they have the same Id Number in the deck constructor, but not in the cdb. That's because all of alternate artworks in their alias spot say "89631139" instead of 0 because that is the Id number they share to be the same card. So the original card will say 0, then the alternate artworks will have different ids but then you change the alias to the id of the card you want it to copy and BAM they have the same name. This also works with cards that share names with other cards in their effects. Look at A legendary Ocean's effect, it says 'This card's name is treated as Umi" or Elemental Hero Neo Bubbleman who says 'This card's name is treated as Elemental Hero Bubbleman.." so same scenario, they all have individual Id numbers but for a Legendary Ocean it will say the Id number of Umi in it's Alias spot and Neo Bubbleman with Bubbleman's Id in it's alias slot, yet they all have different Id numbers in general. Hope I cleared this up.

~Jack
Go here to vote for the next cards in Jackpro 1.5:
http://www.tehmadhouse.tk 
Youtube:
http://www.youtube.com/user/jackmoonward
Angel
  • Angel
  • Member Topic Starter
2012-12-14T13:45:23Z
Originally Posted by: Jackmoonward 

This seems oddly similar to my tutorial on how to add cards. Nevertheless I'm happy to see someone else help out in the community. By the alias thing you were confused about, if you have a card like Blue-Eyes White Dragon, which has like 5 different card arts, notice they have the same Id Number in the deck constructor, but not in the cdb. That's because all of alternate artworks in their alias spot say "89631139" instead of 0 because that is the Id number they share to be the same card. So the original card will say 0, then the alternate artworks will have different ids but then you change the alias to the id of the card you want it to copy and BAM they have the same name. This also works with cards that share names with other cards in their effects. Look at A legendary Ocean's effect, it says 'This card's name is treated as Umi" or Elemental Hero Neo Bubbleman who says 'This card's name is treated as Elemental Hero Bubbleman.." so same scenario, they all have individual Id numbers but for a Legendary Ocean it will say the Id number of Umi in it's Alias spot and Neo Bubbleman with Bubbleman's Id in it's alias slot, yet they all have different Id numbers in general. Hope I cleared this up.

~Jack



Yes, it's obviously based on your info -w- I'm trying to recapitulate everything in this post to make things easier. Maybe I should credit you to avoid confusions. BTW Thanks for keeping helping here :D

http://www.ygopro.co/tab...to-YGOPro--Tutorial.aspx  I'm checking it right now. As I can see, you are missing some things I put in my post, why don't you copy them to your tutorial? It would be better because I'm not good at English :s
Jackmoonward
2012-12-14T13:54:23Z
Originally Posted by: Angel 

Originally Posted by: Jackmoonward 

This seems oddly similar to my tutorial on how to add cards. Nevertheless I'm happy to see someone else help out in the community. By the alias thing you were confused about, if you have a card like Blue-Eyes White Dragon, which has like 5 different card arts, notice they have the same Id Number in the deck constructor, but not in the cdb. That's because all of alternate artworks in their alias spot say "89631139" instead of 0 because that is the Id number they share to be the same card. So the original card will say 0, then the alternate artworks will have different ids but then you change the alias to the id of the card you want it to copy and BAM they have the same name. This also works with cards that share names with other cards in their effects. Look at A legendary Ocean's effect, it says 'This card's name is treated as Umi" or Elemental Hero Neo Bubbleman who says 'This card's name is treated as Elemental Hero Bubbleman.." so same scenario, they all have individual Id numbers but for a Legendary Ocean it will say the Id number of Umi in it's Alias spot and Neo Bubbleman with Bubbleman's Id in it's alias slot, yet they all have different Id numbers in general. Hope I cleared this up.

~Jack



Yes, it's obviously based on your info -w- I'm trying to recapitulate everything in this post to make things easier. Maybe I should credit you to avoid confusions. BTW Thanks for keeping helping here :D

http://www.ygopro.co/tab...to-YGOPro--Tutorial.aspx  I'm checking it right now. As I can see, you are missing some things I put in my post, why don't you copy them to your tutorial? It would be better because I'm not good at English :s



Well if you insist, credit is due where credit is due. Thanks for taking the time to write this all out btw, and your english isn't bad, trust me.

~Jack
Go here to vote for the next cards in Jackpro 1.5:
http://www.tehmadhouse.tk 
Youtube:
http://www.youtube.com/user/jackmoonward
Tea82
2012-12-14T14:12:27Z
Interesting extra tutorial about adding-make a custom card for YGOPro especially the part where you explain about Data Record Editor (Monster type,atribute,race,....). I am glad to see that there are many people like you to interesting to explain how someone can actually add new cards for YGOPro!!
liavcol
2013-01-28T19:19:41Z
I really support this idea so I registerd the github, but what do I have to do in order to make it work? can I upload my own costum cards into the github? And if I can, how? Can someone make a toturial about this?
THANKS FOR UR TIME!