ha_n
  • ha_n
  • Advanced Member
2016-02-28T05:17:23Z
Can you explain way to use "Empty Expansions Template"? I don't know how to use it to backup when Ygopro update.[:lol:] . Thank you
Michael Lawrence Dee
2016-02-28T08:57:25Z
Originally Posted by: ha_n 

Can you explain way to use "Empty Expansions Template"? I don't know how to use it to backup when Ygopro update.[:lol:] . Thank you



It's simply an empty database and zip. What you can do for backup purposes.

1. Open SQLite.
2. Copy-Paste all data contents to the data at the same time all text contents to text. - I meant your cards, not the whole database.
3. For the .zip copy all YOUR .jpg and place them within the .zip pics, while scripts for scripts.
It's pretty easy to understand so just ask if it isn't clear. Rushing to do something at the moment.
Now this is how I play:
bou28
2016-02-28T10:04:46Z
Hi! Could you help me for this card script: when this card is Normal Summoned, effects of Spell/Trap Cards and non-DIVINE monsters cannot be activated. Thx for all your hard work!
Michael Lawrence Dee
2016-02-28T12:40:14Z
Originally Posted by: bou28 

Hi! Could you help me for this card script: when this card is Normal Summoned, effects of Spell/Trap Cards and non-DIVINE monsters cannot be activated. Thx for all your hard work!



[:wall:] [:wall:] [:wall:] Post it outside this topic, create your own topic.
Now this is how I play:
bou28
2016-02-28T16:19:40Z
I have already created one but nobody replied.
Michael Lawrence Dee
2016-02-28T16:38:40Z
Originally Posted by: bou28 

I have already created one but nobody replied.



Then bump it and include my name. Once it's near the top of Card Scripts, I can put it in my list of cards to check/ help out.
Now this is how I play:
bou28
2016-02-28T16:53:24Z
How to do that ?
hung96
2016-03-05T07:36:17Z
I 've read all the tutorials in box but I still don't know how to make difficult script. When make a hard script, I can only search a same effect and copy-paste it.[:wall:]
Could there be a document about scripting to understand it more?[:sad:]
Michael Lawrence Dee
2016-03-05T10:53:44Z
Originally Posted by: hung96 

I 've read all the tutorials in box but I still don't know how to make difficult script. When make a hard script, I can only search a same effect and copy-paste it.[:wall:]
Could there be a document about scripting to understand it more?[:sad:]



I haven't found any that's why I made this one myself. It's still incomplete of course. What is your effect then? Just create a new topic and I'll see how difficult it is.
Now this is how I play:
hung96
2016-03-05T11:42:40Z
Oh no. My opinion is how to understand it to script myself. I am afraid to disturb other when i ask them. I 'm curious you learned how to script. I think when there is no tutorial as now. I 've read all the tutorials but i can only make some basic script. Thank for your interest[:laugh:]
Michael Lawrence Dee
2016-03-05T11:48:44Z
Originally Posted by: hung96 

Oh no. My opinion is how to understand it to script myself. I am afraid to disturb other when i ask them. I 'm curious you learned how to script. I think when there is no tutorial as now. I 've read all the tutorials but i can only make some basic script. Thank for your interest[:laugh:]



Well you can check the interpreter.cpp, included in the tutorial. ALL the functions are there, though without explanations. You have to test them yourself. CTRL+F it.
Now this is how I play:
ha_n
  • ha_n
  • Advanced Member
2016-03-05T11:50:33Z
Originally Posted by: hung96 

Oh no. My opinion is how to understand it to script myself. I am afraid to disturb other when i ask them. I 'm curious you learned how to script. I think when there is no tutorial as now. I 've read all the tutorials but i can only make some basic script. Thank for your interest[:laugh:]



I also learn about scripting and I found this folder https://github.com/Fluorohydride [:thumbu:]
I think it contains everything about Ygopro but it seems very complex[:lol:]
urielkama
2016-03-05T14:16:51Z
Originally Posted by: ha_n 

Originally Posted by: hung96 

Oh no. My opinion is how to understand it to script myself. I am afraid to disturb other when i ask them. I 'm curious you learned how to script. I think when there is no tutorial as now. I 've read all the tutorials but i can only make some basic script. Thank for your interest[:laugh:]



I also learn about scripting and I found this folder https://github.com/Fluorohydride [:thumbu:]
I think it contains everything about Ygopro but it seems very complex[:lol:]



Yes it contains everything what you Need, UI and GUI for Client and ocgcore which includes the current and further duel mechanics where every effect and so on is described, if you Aware of c++ and c# language, and know what fluorhydride intended to do with those codes you'll able to modify ygopro as you want to in every kind of improvements or maybe Change it to a completely new programm^^.
hung96
2016-03-07T15:00:25Z
I think C++ is different from Lua[:confu:] . I read interpreter.cpp and tested some scripts. But i don't understand how to use code from line 504
Michael Lawrence Dee
2016-03-07T15:25:07Z
Originally Posted by: hung96 

I think C++ is different from Lua[:confu:] . I read interpreter.cpp and tested some scripts. But i don't understand how to use code from line 504



This 504?
static const struct luaL_Reg debuglib[] = {

Don't bother that. It's for Debugging. I think uh... Check puzzles? I think they used these there.
Now this is how I play:
hung96
2016-03-08T06:31:37Z
Thank a lot.[:laugh:] Have interpreter updated when new version release ? I saw a few more files in Ygopro=core folders outside Interpreter.cpp . These files contain code what is similar to C++. Was these files relate to lua scripting ? Can C++ code script as Lua?
Michael Lawrence Dee
2016-03-08T14:29:36Z
Originally Posted by: hung96 

Thank a lot.[:laugh:] Have interpreter updated when new version release ? I saw a few more files in Ygopro=core folders outside Interpreter.cpp . These files contain code what is similar to C++. Was these files relate to lua scripting ? Can C++ code script as Lua?



The interpreter.cpp is ALWAYS updated since it's in Github. Honestly, I only used the interpreter.cpp and nothing from the other pages.
Now this is how I play:
EmeraldDragn
2016-03-10T00:09:40Z
How would the script code work for a card in multiple archetypes? For Example, "Junk Synchron" is both a "Junk" monster and a "Synchron" monster. The card i'm trying to add is called "Stardust Synchron" and so would be both a "Stardust" card and a "Synchron" card. At the very least can someone tell me what the setcode for such a card would be? Please respond quickly, and thanks for the help!
Michael Lawrence Dee
2016-03-10T02:06:57Z
Originally Posted by: EmeraldDragn 

How would the script code work for a card in multiple archetypes? For Example, "Junk Synchron" is both a "Junk" monster and a "Synchron" monster. The card i'm trying to add is called "Stardust Synchron" and so would be both a "Stardust" card and a "Synchron" card. At the very least can someone tell me what the setcode for such a card would be? Please respond quickly, and thanks for the help!



This is partially answered in the first Spoiler Tag in my post.

And it also explained in the first link:
http://www.ygopro.co/For...ting-video-Added#post381 

Find something with 2 archetypes. Just check it. I'd say take Quickdraw Synchron and Stardust Dragon for your setcode's bases and combine them. If the first link plus my partial explanation can't be understood clearly, please reply so I can update that part when I have time.
Now this is how I play:
Similar Topics
Users browsing this topic