It has never happened to me. Have you got decent computers?
I got a great gaming computer...
I know i do... its defos not my computer thats the problem... but its not a big deal for me if fixes fairly quickly...
Thanks for that, but unfortunately, I have very little knowledge when it comes to java so I'm not quite sure what a boolean is, or how that script works. I'm guessing I'd just put that stuff in the global script files, change Rusty Sword to Wooden Sword (it's the item it's converted from) and put the message in instead of Blah?
A boolean is just a true/false statement. Unlike a variable, which can be any number, a boolean has two states: true and false. Basically, we are just saying that when the map is made, a boolean is false (I called it RustySwordGet just because it makes sense that way. The if statement has two conditions: that you have the sword, and that the variable is false. Once the condition is met, the message is printed, and the boolean is changed to true, so that the condition is not met and you won't get spammed in chat.
And yes, on the /config, just put onNewSave in onNewSave and onUpdate in the global update. I don't know if you have to make a new file to make onNewSave variables work though. If you have used /mapedit, it doesn't really matter.
Also, would it be possible to set it so that for every 2 or so seconds the Umbrella is in it's open state, it will consume an item? I want it to be a magic spell in my map, and so I also want it to consume magic power simmiliar to the Fire and Ice rods.
I believe that the umbrella being open is based on its damage level, so you would want to check the damage level using getDamage. I'm tempted to say just have it decrement an item and then time.sleep for two seconds, but this would go in the global onUpdate, and I'm pretty sure that putting sleeps in update is bad. Maybe if you put the function on the onLoad/onNewSave it will work without delaying the onUpdate, but I don't really know. Depending on what you have in your onUpdate, it might not even matter.
This is strange.
After using config to connect the scripts to their correct buttons, the console is constantly spammed with
"Script argument was not a script or was not created by interpreted mode"
Is there something I've done wrong?
Never seen that before.
Is it actually a javascript file (.js), or just a text file? Because you need to to save it as a javascript file.
I'm assuming you know this, because you had a script at least somewhat working before, but that is what the error sounds like to me. Otherwise, I have no idea. Also, if it is giving a certain error line, post said line.
Is it possible to install a mod like optifine on top of the adventurecraft minecraft.jar? I need to know becouse a more advanced map I want to play crashes from lag in 30 seconds unless I activate debug mode, which blocks half of my screen.
Is it possible to install a mod like optifine on top of the adventurecraft minecraft.jar? I need to know becouse a more advanced map I want to play crashes from lag in 30 seconds unless I activate debug mode, which blocks half of my screen.
No you can't and is that map one of the Doom toolkit ones? Because they are very resource intensive.
The Shadow Gate is not a doom toolkit map, but it is one of the higher quality ones. What texture pack are you using for it? There are options in a room in the upstairs of the chapter selection where you can select texture pack options, ranging from 16x to 164x or something.
I have the lowest resolution on, minimum fog distance, smooth lighting off, and the fastest graphics settings possible, yet without debug mode on I still crash from lag. Any other ideas for this map?
Nope, not giving a certain error line. And yes, they were both script files. I resaved them both just now to make sure, but my Adventurecraft is still having a tantrum about it. The error is probably in the onUpdate file, as the message starts displaying when I connect it via /config.
EDIT:
Upon starting up Adventurecraft and entering my map, two messages were displayed.
Javascript Error: identifier is a reserved word (OnNewSave.js#1)
Javascript Error: missing ) after condition (OnUpdate.js#1)
Alright, I paraphrased a bit. Using the Flamethrower script as an example, you set up the boolean like:
FlameThrowerR = new Boolean(0);
0 is false, and 1 is true. You just don't use true and false at the beginning for whatever reason. You would just replace FlameThrowerR with whatever name you want to use for it.
I'm assuming that the second one is not working because the onNewSave was broken, but did you remember to put the ) after the if statement and before the {?
Thank you very much for this mod (although it is somewhat confusing at first). I am going to use this in my minecraft club in school (yes minecraft club) to build a minecraft version of amnesia/prenumbra ill post the adventure map when i am done. (keep up the good work)
Thank you very much for this mod (although it is somewhat confusing at first). I am going to use this in my minecraft club in school (yes minecraft club) to build a minecraft version of amnesia/prenumbra ill post the adventure map when i am done. (keep up the good work)
I have the lowest resolution on, minimum fog distance, smooth lighting off, and the fastest graphics settings possible, yet without debug mode on I still crash from lag. Any other ideas for this map?
The fact that it doesn't crash/lag if you have debug mode on suggests that it doesn't have anything to do with video settings. It has to be something in the map that causes it which gets disabled by debug mode for some reason. So, unfortunately, I don't think there's anything you can do to fix it.
if (hitEntity !=null) {
hitEntity.setFireLevel(200)
if (!hitEntity.getClassType('X')){
hitEntity.Texture = "/Hurt/" + hitEntity.getClassType() + ".png"
}
}
What do I need to replace 'X' with so that it doesn't change the slime texture? If I put slime there, it says 'slime' is undefined.'
(if you remove the 'if' and the brackets it changes the texture normally)
public void AddRecipes(CraftingManager craftingmanager)
craftingmanager.addshapelessrecipe(skittle) new Object[]{
new ItemStack(Item.dyepowder, 1 , 1), new Itemstack(Item.sugar, 1)
}
modding for fun
Click that ^^^^
Mhm, I guess I can just use the Install button instead of the Install via login and then hopefully after that I'll be able to use the official minecraft.jar to login safely.
However, when I try and click install it says "patch.dat (No such file or directory)" even though patch.dat is in the AdventureCraft folder I downloaded, anybody know a fix for this?
Restarting Java and my PC didn't help, same error occurs.
NewSave
new boolean RustySwordGet = false;
OnUpdate
if(player has sword && RustySwordGet == false){
chat.print("Blah");
RustySwordGet = true;
}
Or something along those lines? Seems like it would be simpler, and I've used something like that for cooldown items, so I think this works.
That's exactly what I was going to suggest.
Link Removed
I got a great gaming computer...
I know i do... its defos not my computer thats the problem... but its not a big deal for me if fixes fairly quickly...
CANT WAIT :biggrin.gif:
A boolean is just a true/false statement. Unlike a variable, which can be any number, a boolean has two states: true and false. Basically, we are just saying that when the map is made, a boolean is false (I called it RustySwordGet just because it makes sense that way. The if statement has two conditions: that you have the sword, and that the variable is false. Once the condition is met, the message is printed, and the boolean is changed to true, so that the condition is not met and you won't get spammed in chat.
And yes, on the /config, just put onNewSave in onNewSave and onUpdate in the global update. I don't know if you have to make a new file to make onNewSave variables work though. If you have used /mapedit, it doesn't really matter.
I believe that the umbrella being open is based on its damage level, so you would want to check the damage level using getDamage. I'm tempted to say just have it decrement an item and then time.sleep for two seconds, but this would go in the global onUpdate, and I'm pretty sure that putting sleeps in update is bad. Maybe if you put the function on the onLoad/onNewSave it will work without delaying the onUpdate, but I don't really know. Depending on what you have in your onUpdate, it might not even matter.
Never seen that before.
Is it actually a javascript file (.js), or just a text file? Because you need to to save it as a javascript file.
I'm assuming you know this, because you had a script at least somewhat working before, but that is what the error sounds like to me. Otherwise, I have no idea. Also, if it is giving a certain error line, post said line.
No you can't and is that map one of the Doom toolkit ones? Because they are very resource intensive.
Link Removed
It's "The Legend of Zelda: Shadow Gate" Is this a doom toolkit map? And do you know how I can increase my fps?
I have the lowest resolution on, minimum fog distance, smooth lighting off, and the fastest graphics settings possible, yet without debug mode on I still crash from lag. Any other ideas for this map?
Alright, I paraphrased a bit. Using the Flamethrower script as an example, you set up the boolean like:
FlameThrowerR = new Boolean(0);
0 is false, and 1 is true. You just don't use true and false at the beginning for whatever reason. You would just replace FlameThrowerR with whatever name you want to use for it.
I'm assuming that the second one is not working because the onNewSave was broken, but did you remember to put the ) after the if statement and before the {?
http://www.minecraftforum.net/topic/238300-▓▬ac▬▓▬amnesiaminecrafts-descent▬▓▬released-on-ac-map-downloader-25000-dls-penumbra-overmine-teaser▬▓/
The fact that it doesn't crash/lag if you have debug mode on suggests that it doesn't have anything to do with video settings. It has to be something in the map that causes it which gets disabled by debug mode for some reason. So, unfortunately, I don't think there's anything you can do to fix it.
What do I need to replace 'X' with so that it doesn't change the slime texture? If I put slime there, it says 'slime' is undefined.'
(if you remove the 'if' and the brackets it changes the texture normally)
craftingmanager.addshapelessrecipe(skittle) new Object[]{
new ItemStack(Item.dyepowder, 1 , 1), new Itemstack(Item.sugar, 1)
}
modding for fun
Click that ^^^^
Link Removed
However, when I try and click install it says "patch.dat (No such file or directory)" even though patch.dat is in the AdventureCraft folder I downloaded, anybody know a fix for this?
Restarting Java and my PC didn't help, same error occurs.
GIMME JOR SHOP MUSIC.
thankyou,
valued fan :3
and to above, no. all it does is use it for downloading the update