Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

9 Pages V  « < 2 3 4 5 6 > »   
Closed TopicStart new topic
> Shopoholic v 2.0, Advanced Shopping features (v 2.0 Since June 25)
Freddrik
post Jun 27 2008, 01:12 PM
Post #61


Level 2
Group Icon

Group: Member
Posts: 19
Type: Event Designer
RM Skill: Skilled




QUOTE (cmpsr2000 @ Jun 26 2008, 11:47 AM) *
QUOTE (Freddrik @ Jun 26 2008, 02:00 PM) *
I have all scripts that are in the demo, i think it's about 4 or something.


There are 12 script files for version 2.0, I'm pretty sure you are using the old version. Grab the new files and see if it fixes your problem.



I have added all now, but is still that error. What can be wrong?

Go to the top of the page
 
+Quote Post
   
cmpsr2000
post Jun 27 2008, 01:21 PM
Post #62


Keeper of the Ruby Code of DOOM!
Group Icon

Group: Revolutionary
Posts: 355
Type: Scripter
RM Skill: Masterful




QUOTE (xeyla @ Jun 27 2008, 10:35 AM) *
I tried this new script out, and I'm getting this error:

Script 'Redefinitions' line 369: TypeError occured. no implicit conversion from Nil to Integer

I have copied all the new text files just before i used this script, and pasted them above Main Process. How do I fix this?
Thanks for your help smile.gif


Line 369 for me is part of a case structure and cannot throw that error. Please paste the line 369 in your "Redefinitions" page so I can see what code is causing the error.

QUOTE (Lennox55 @ Jun 27 2008, 11:10 AM) *
Hello guys biggrin.gif

Amazing script, tried the demo, but - I can't seem to get it working on my own, but I'm a total noob to thi scripting stuff as well laugh.gif

Some step by step guidance would have been awesome, thanks in advance smile.gif
And by step by step, I mean how to get the shops workin etc. I tried but i only get some error messages, I'm open for any suggestions, so please do tell wink.gif

Oh, and btw, I have pasted all the text in separate boxes in the script editor, am I doing something wrong?


You are doing it correctly pasting each into it's own box (like the demo). What error are you getting? Did you follow the instructions for creating a shop in Game_Shopping (also posted in the OP customization section!)?

QUOTE (Freddrik @ Jun 27 2008, 03:26 PM) *
I have added all now, but is still that error. What can be wrong?


if you are still getting an error at that line number then your lines aren't lining up with mine, paste the code from that line into a reply here so I can see what code is giving you problems.

Also for everyone: if you are using other scripts, don't forget to mention this when reporting a bug!


__________________________
Go to the top of the page
 
+Quote Post
   
Freddrik
post Jun 27 2008, 01:27 PM
Post #63


Level 2
Group Icon

Group: Member
Posts: 19
Type: Event Designer
RM Skill: Skilled




QUOTE (Freddrik @ Jun 27 2008, 03:26 PM) *
I have added all now, but is still that error. What can be wrong?


if you are still getting an error at that line number then your lines aren't lining up with mine, paste the code from that line into a reply here so I can see what code is giving you problems.

Also for everyone: if you are using other scripts, don't forget to mention this when reporting a bug!


I solved that problem, thx.

But now i get another error when starting my game:

CODE
Script 'Game_Banking' line 102: NameError occurred

uninitialized constant Game_Banking::Storage_Slot

Go to the top of the page
 
+Quote Post
   
cmpsr2000
post Jun 27 2008, 01:33 PM
Post #64


Keeper of the Ruby Code of DOOM!
Group Icon

Group: Revolutionary
Posts: 355
Type: Scripter
RM Skill: Masterful




QUOTE (Freddrik @ Jun 27 2008, 03:41 PM) *
I solved that problem, thx.

But now i get another error when starting my game:

CODE
Script 'Game_Banking' line 102: NameError occurred

uninitialized constant Game_Banking::Storage_Slot


Storage_Slot is not a subclass of game banking. You either pasted it into the wrong place or you're messing around with the script tongue.gif The Storage_Slot class exists in the global scope, just paste it into it's own line under materials.


__________________________
Go to the top of the page
 
+Quote Post
   
The Wizard 007
post Jun 27 2008, 06:14 PM
Post #65


Jack of all trades
Group Icon

Group: Revolutionary
Posts: 118
Type: Developer
RM Skill: Skilled




Glad you're keeping up on this cmpsr2000, as always good work.


__________________________
Currently working on:

Underground Syndicate (mafioso/modern type RPG)
Mind Maze (old school dungeon crawler with a different feel)
Dragon Adventure (Dragon Quest type fangame with more customization)
Dark Grind (Survival horror RPG)
Go to the top of the page
 
+Quote Post
   
Kyoshiro
post Jun 28 2008, 05:15 AM
Post #66



Group Icon

Group: Member
Posts: 4
Type: Developer
RM Skill: Skilled




This Script is really amazing, but i've got a problem with it 'cause my english is not the best dry.gif .
I want to create a bank:
CODE
$scene = Scene_Bank.new(bankID, rates, slotCost, loanMax, hasVault)


-bankID: no problem
-how must be the input for rates? Like this : [10, 20, 15] ?
-slotCost: no problem
-loanMax: no problem
-hasVault: what must be insert? And have i to change something in the script to do this?

Sorry for the questions but as you see, my english is not the best sleep.gif .
Go to the top of the page
 
+Quote Post
   
ell
post Jun 28 2008, 06:28 AM
Post #67


Level 8
Group Icon

Group: Revolutionary
Posts: 113
Type: None
RM Skill: Undisclosed




Hi, pretty amazing script to the looks of it apart from it doesnt work for me
laugh.gif

I'm not entirely sure about how to use it but I tried using the basic one, i get this error.


Script "Redefinitions" lline 473: Type error occurred
no implicit conversion from nil to integer


my line 473 is

lastRestockTime = $game_shopping.shopRestockTimers[@shopID]

Thanks but i'm probably doing it wrong, here is what i typed in a script box before calling the shop proscecing command.

CODE
$game_shopping.currentShopID:1
$game_shopping.currentDiscountRate:1
$game_shopping.currentSellRate:0.6
$game_shopping.currentMarkupRate:1
$game_shopping.currentTaxRate:0.25
$game_shopping.currentInflationRate:0.2


I'm guesing its wrong so please give a hand. I dont have any scripts which interfere with buying. Ty


__________________________
Go to the top of the page
 
+Quote Post
   
cmpsr2000
post Jun 28 2008, 06:37 AM
Post #68


Keeper of the Ruby Code of DOOM!
Group Icon

Group: Revolutionary
Posts: 355
Type: Scripter
RM Skill: Masterful




QUOTE (Kyoshiro @ Jun 28 2008, 07:29 AM) *
-bankID: no problem
-how must be the input for rates? Like this : [10, 20, 15] ?
-slotCost: no problem
-loanMax: no problem
-hasVault: what must be insert? And have i to change something in the script to do this?

Sorry for the questions but as you see, my english is not the best sleep.gif .


rates are decimals, for 10%, 20%, 15% you would put [.1, .2, .15]

hasVault is boolean, so use true or false.

QUOTE (ell @ Jun 28 2008, 08:42 AM) *
CODE
$game_shopping.currentShopID:1
$game_shopping.currentDiscountRate:1
$game_shopping.currentSellRate:0.6
$game_shopping.currentMarkupRate:1
$game_shopping.currentTaxRate:0.25
$game_shopping.currentInflationRate:0.2


This is improper syntax. Your're failing because shopID(and all those other attributes) have not actually been set. Here is the correct syntax:

CODE
$game_shopping.currentShopID = 1
$game_shopping.currentDiscountRate = 1
$game_shopping.currentSellRate = 0.6
$game_shopping.currentMarkupRate = 1
$game_shopping.currentTaxRate =0.25
$game_shopping.currentInflationRate =0.2


You can examine the events of the shopkeepers and bank in the demo to help get a better idea of how to set them up. happy.gif


__________________________
Go to the top of the page
 
+Quote Post
   
ell
post Jun 28 2008, 07:15 AM
Post #69


Level 8
Group Icon

Group: Revolutionary
Posts: 113
Type: None
RM Skill: Undisclosed




Ty, I havnt tried it out yet but I know it will work! Thanks alot


__________________________
Go to the top of the page
 
+Quote Post
   
Freddrik
post Jun 28 2008, 08:11 AM
Post #70


Level 2
Group Icon

Group: Member
Posts: 19
Type: Event Designer
RM Skill: Skilled




QUOTE
Storage_Slot is not a subclass of game banking. You either pasted it into the wrong place or you're messing around with the script tongue.gif The Storage_Slot class exists in the global scope, just paste it into it's own line under materials.



Thx again.

But now, i get another error, wacko.gif !!

It's this:

CODE
Script 'Redefinitions' line 374: TypeError occurred.

nil can't be coerced into Fixnum



I have all the scripts! So you know...


Please help me outte here with all those fucking errors....

Go to the top of the page
 
+Quote Post
   
Letalis
post Jun 28 2008, 11:41 AM
Post #71


Level 6
Group Icon

Group: Member
Posts: 89
Type: Developer
RM Skill: Beginner




I had a thought about this script and have two questions about it. The first one is is there a way to set up a supply and demand type feature you know like 50 of item X would be cheaper then say 20 of item X.

My second question is is there a way to set up a type of trade network with this script for instance buying wine from place a and sell it for more at place b since the advanced store seems to open up some more options with the store.


__________________________
Current Projects:

Duality of the Soul
RMVX
Complete: 4%

Team:
Writer: Letalis , Neko_Sake

Now Hiring All Positions.
If interested message me for details.

Go to the top of the page
 
+Quote Post
   
ell
post Jun 29 2008, 03:44 AM
Post #72


Level 8
Group Icon

Group: Revolutionary
Posts: 113
Type: None
RM Skill: Undisclosed




Thanks a load this is an amazing script!


__________________________
Go to the top of the page
 
+Quote Post
   
Aindra
post Jun 29 2008, 04:05 AM
Post #73


Level 1
Group Icon

Group: Member
Posts: 8
Type: None
RM Skill: Undisclosed




Freddick, it might be better for you to just download the demo. Take a look at that demo's script editor. Copy/paste the added scripts from there, into your project.

If you did that already, then never mind.
Go to the top of the page
 
+Quote Post
   
Xeyla
post Jun 29 2008, 06:34 AM
Post #74


Keeper of the RMVX FAQ
Group Icon

Group: Revolutionary
Posts: 706
Type: Mapper
RM Skill: Intermediate




Line 369 for me is part of a case structure and cannot throw that error. Please paste the line 369 in your "Redefinitions" page so I can see what code is causing the error.



Line 369: lastRestockTime = $game_shopping.shopRestockTimers[@shopID]


__________________________


QUOTE (Albino Parakeet @ Apr 1 2011, 05:46 PM) *
i need to know exactly how to put a penis inside someone's butt.
do you have the technical knowledge to tell me how?
QUOTE (Albino Parakeet @ Apr 2 2011, 01:20 PM) *
QUOTE (Shadyone @ Apr 2 2011, 06:29 AM) *
I see the keet likes anal.

im trying to get into it but people aren't answering my question
Go to the top of the page
 
+Quote Post
   
ell
post Jun 29 2008, 10:04 AM
Post #75


Level 8
Group Icon

Group: Revolutionary
Posts: 113
Type: None
RM Skill: Undisclosed




Hi I have another, rather strange error. The skill shop works with skill 1,2 and 3 but not with 86,97,98 and 101 here is my game_shopping section where you define the prices of skills
CODE
@skillPrices = [ #DON'T TOUCH THIS ONE!
nil,

#Skills 1-10
100, 200, 300, nil, nil, nil, nil, nil, nil, nil,

#Skills 11-20
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,

#Skills 21-30
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,

#Skills 31-40
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,

#Skills 41-50
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,

#Skills 51-60
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,

#Skills 61-70
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,

#Skills 71-80
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,

#Skills 81-90
nil, nil, nil, nil, nil, 150, nil, nil, nil, nil,

#Skills 91-100
nil, nil, nil, nil, nil, nil, nil, nil, 150, 150,

#Skills 101-110
150, nil, nil, nil, nil, nil, nil, nil, nil, nil,
]


and the error occurs on line 495, No metthod error occured undefined method for '*' nil:nilclass

CODE
      price = item.price * shopMarkup


The scripts before
CODE
$scene = Scene_Shop.new(1, 1, 0.6, 1, 0.25,
0.2, 1, TRUE)
are
CODE
$game_temp.shop_goods = [ [3, 001, -1],
                          [3, 002, -1],
                          [3, 003, -1],
                          [3, 101, -1], ]


Please help!


__________________________
Go to the top of the page
 
+Quote Post
   
Freddrik
post Jun 30 2008, 05:33 AM
Post #76


Level 2
Group Icon

Group: Member
Posts: 19
Type: Event Designer
RM Skill: Skilled




QUOTE (Aindra @ Jun 29 2008, 03:19 AM) *
Freddick, it might be better for you to just download the demo. Take a look at that demo's script editor. Copy/paste the added scripts from there, into your project.

If you did that already, then never mind.


I have checked the Demo, it's old, it uses the old script.

this is my line number 474:

timeDif = now - lastRestockTime
Go to the top of the page
 
+Quote Post
   
xionreaver
post Jun 30 2008, 06:49 AM
Post #77


Level 1
Group Icon

Group: Member
Posts: 10
Type: Event Designer
RM Skill: Beginner




the addslot function on the bank doesn't actually require any money, you can do it with 0, no matter the setting.
Go to the top of the page
 
+Quote Post
   
SpawnUchiha
post Jun 30 2008, 01:59 PM
Post #78


Level 5
Group Icon

Group: Member
Posts: 72
Type: Event Designer
RM Skill: Skilled




QUOTE (xionreaver @ Jun 30 2008, 10:03 AM) *
the addslot function on the bank doesn't actually require any money, you can do it with 0, no matter the setting.


Yeah I was about to say the same thing, that and is it ever going to be possible to have more than 64 slots? I know this is probably asking a lot, but I'm just wondering at looking at the near future.
Go to the top of the page
 
+Quote Post
   
cmpsr2000
post Jun 30 2008, 05:37 PM
Post #79


Keeper of the Ruby Code of DOOM!
Group Icon

Group: Revolutionary
Posts: 355
Type: Scripter
RM Skill: Masterful




QUOTE (Freddrik @ Jun 28 2008, 10:25 AM) *
CODE
Script 'Redefinitions' line 374: TypeError occurred.

nil can't be coerced into Fixnum



I have all the scripts! So you know...


Please help me outte here with all those fucking errors....


Line 374 of Redefinitions is "end." Yet again, this cannot throw this error. No line near this line can throw this error. I already double-checked all the downloadable files, and they all work for me. You have either added or removed something from redefinitions that is causing your errors. If you want to modify the script you are welcome to do so, but I cannot support problems caused by other people's modifications. If you haven't done any modification, then you have the wrong file or you have pasted it into your game incorrectly. After you have checked these things, if the error still occurs: If line 374 for you is not "end", then you need to paste your line 374 from redefinitions so I can see what code is causing the error!

QUOTE (Letalis @ Jun 28 2008, 01:55 PM) *
I had a thought about this script and have two questions about it. The first one is is there a way to set up a supply and demand type feature you know like 50 of item X would be cheaper then say 20 of item X.

My second question is is there a way to set up a type of trade network with this script for instance buying wine from place a and sell it for more at place b since the advanced store seems to open up some more options with the store.


There is an inflation-price rate which can be set which will cause the price to increase once the stock has been depleted to a specified level. This happens after a purchase, not during a purchase. (If you went into a real store and bought all of a product that they had, they wouldn't charge you more for the last few. However, if you bought all but the last few and the store could see it was a hot commodity, it would raise the price after your purchase. Gas stations do this during false gas-crisis. When there is a run on the pump, they raise the price as the gas in the tank runs low to discourage lines and keep themselves stocked.) However it sounds like what you really want isn't supply/demand, but a bulk discount. I can add this in the next update.

For your second question, yes, sort of. You can set the sellrate higher, but that will cause the shopkeeper to pay more for all items, not just the specific one you want. You can always update the item Price in a script call: $data_items[ITEM_ID].price = YOUR_PRICE

If you did this before each store, you could effectively set up a trade network by setting the prices different at each shop.

QUOTE (ell @ Jun 29 2008, 05:58 AM) *
Thanks a load this is an amazing script!


You are very welcome!

QUOTE (Aindra @ Jun 29 2008, 06:19 AM) *
Freddick, it might be better for you to just download the demo. Take a look at that demo's script editor. Copy/paste the added scripts from there, into your project.

If you did that already, then never mind.


Thank you for trying to help him out. That is a good idea. If you haven't already looked through the way it set up in the demo, it is always good to familiarize yourself with it before attempting to work with the script on your own.

QUOTE (xeyla @ Jun 29 2008, 08:48 AM) *
Line 369: lastRestockTime = $game_shopping.shopRestockTimers[@shopID]


Weird, that's 469 for me....are you sure you have the entire file copied in? Maybe the compiler is just reporting the wrong line number biggrin.gif Anyway, I'll take a look at it and get back to you shortly. Off the top of my head, it could be the same thing Fred possibly ran into. See my response in bold below.

QUOTE (ell @ Jun 29 2008, 12:18 PM) *
Hi I have another, rather strange error. The skill shop works with skill 1,2 and 3 but not with 86,97,98 and 101 here is my game_shopping section where you define the prices of skills
and the error occurs on line 495, No metthod error occured undefined method for '*' nil:nilclass

Do you have those skills in your database? If they don't exist in the DB they will return nil. I'll check the code just in case.

QUOTE (Freddrik @ Jun 30 2008, 07:47 AM) *
I have checked the Demo, it's old, it uses the old script.

this is my line number 474:

timeDif = now - lastRestockTime


the demo is NOT old and does NOT use the old script. I just verified for you for the SECOND time. Also, you said 374 above tongue.gif This line makes more sense for that error. It means a restock time wasn't created. Are you using a shopID higher than @totalShopkeepers - 1 ? Also, if you *change* @totalShopkeepers you need to start a new game! If you load a game it will load the old version of $game_shopping, rather than the new one you just modified!

QUOTE (xionreaver @ Jun 30 2008, 09:03 AM) *
the addslot function on the bank doesn't actually require any money, you can do it with 0, no matter the setting.


Good catch, I will patch that as soon as I am able!

QUOTE (SpawnUchiha @ Jun 30 2008, 04:13 PM) *
Yeah I was about to say the same thing, that and is it ever going to be possible to have more than 64 slots? I know this is probably asking a lot, but I'm just wondering at looking at the near future.


I can add the ability for more slots by making the window scrollable. Since you can store 99 of each item, and you can create multiple banks for multiple vaults, I didn't think anyone would actually need more than that lol. I'll work on that for the next version.


__________________________
Go to the top of the page
 
+Quote Post
   
Xeyla
post Jun 30 2008, 07:02 PM
Post #80


Keeper of the RMVX FAQ
Group Icon

Group: Revolutionary
Posts: 706
Type: Mapper
RM Skill: Intermediate




Also, if you *change* @totalShopkeepers you need to start a new game! If you load a game it will load the old version of $game_shopping, rather than the new one you just modified!

I didn't change the number of total shopkeepers, i was afraid i would mess up the script tongue.gif
I'm going to delete the scripts a second time, and then re-copy them into my game and see if that helps. wacko.gif
Thanks for the help, you are doing a wonderful job thumbsup.gif

Edit: I just started a new game as a experiment, pasted all the script files, made a simple shop that sells potions. When i talk to the event, it says "Buy Stuff?" then tries to open the window, and i get this error: Script 'Redefinitions' line 473: TypeError occured. no implicit conversion from Nil to Integer.

Line 473 lastRestockTime = $game_shopping.shopRestockTimers[@shopID]

I have not changed anything in the script, or left anything out.

This post has been edited by xeyla: Jun 30 2008, 08:11 PM


__________________________


QUOTE (Albino Parakeet @ Apr 1 2011, 05:46 PM) *
i need to know exactly how to put a penis inside someone's butt.
do you have the technical knowledge to tell me how?
QUOTE (Albino Parakeet @ Apr 2 2011, 01:20 PM) *
QUOTE (Shadyone @ Apr 2 2011, 06:29 AM) *
I see the keet likes anal.

im trying to get into it but people aren't answering my question
Go to the top of the page
 
+Quote Post
   

9 Pages V  « < 2 3 4 5 6 > » 
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 03:39 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker