Jump to content




[CC 1.5] [MC 1.4.6/1.4.7] [SMP] Xfel's peripherals - New cable appearance!

peripheral api

524 replies to this topic

#201 arbot

  • Members
  • 25 posts

Posted 10 June 2012 - 01:31 PM

View PostXfel, on 10 June 2012 - 07:30 AM, said:

Did you download them yesterday? I made a new version for bugfixes, but I had some problems with the forum, so I wasn't able to update all links. So, please downlaod the mods again (It should be v1.5 by than).

Yooou might want to see this: Posted Image

#202 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 10 June 2012 - 03:01 PM

Well, for some reason bukkit thinks that all guis using containers have to allow item transfer. The digital workbench, however, doesn't allow that, and I won't change that. Maybe I'll find a solution, but until than this is a message you can ignore. Oh, and don't send it to mcportcentral, as I'm maintaining the port myself.

#203 Cloudy

    Ex-Developer

  • Members
  • 2,542 posts

Posted 10 June 2012 - 04:33 PM

Or you can just add the methods - really, you pass the correct things to the container in most cases anyway, it's just a case of storing them and returning them from the functions. If you don't want to do that, you could probably override the function which does this check to remove the error.

#204 arbot

  • Members
  • 25 posts

Posted 10 June 2012 - 04:47 PM

View PostXfel, on 10 June 2012 - 03:01 PM, said:

Well, for some reason bukkit thinks that all guis using containers have to allow item transfer. The digital workbench, however, doesn't allow that, and I won't change that. Maybe I'll find a solution, but until than this is a message you can ignore. Oh, and don't send it to mcportcentral, as I'm maintaining the port myself.

Okay, well, congratulations on having the only peripheral (that I've seen) that works correctly with Tekkit. :(/>

#205 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 10 June 2012 - 05:42 PM

If you are interested in it, I uploaded a quick fix that adapts the way the redpower port deals with it. But it will run fine without.

#206 jeffl86

  • New Members
  • 2 posts

Posted 10 June 2012 - 06:44 PM

View Postarbot, on 09 June 2012 - 12:54 PM, said:

View PostXfel, on 07 June 2012 - 10:43 AM, said:

OK, I sat down an hour and ported it to bukkit, finally. Download is on the first post. I'll maintain the port myself, as there were some more difficult adaptions to make.

I even tested it with tekkit, and it works fine (the current version has enough spare ids!). If you find bugs, please tell me, but without a crash report and a reproduction guide I won't do anything.

Which "current version"? The client doesn't work in the Tekkit launcher without changing IDs, so I presume the same could be said for the server (It conflicts with IC2's reactor)

I'm having the same problem. With the Tekkit client v3.0.3 and the latest arp-client-1.2.5 from the first post, I get this crash on startup.
Spoiler
I do not get the same error when I run a Tekkit server (v3.0.4) with the latest ARP bukkit download. Are the client/bukkit versions using different block IDs or am I missing something?

#207 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 10 June 2012 - 06:54 PM

The bukkit version automatically assigns a free id for blocks if there is no config. The client doesn't. To enshure compability, copy the /config/aip.cfg from the server to the client.

#208 jeffl86

  • New Members
  • 2 posts

Posted 10 June 2012 - 06:59 PM

That seems to have done the trick. Thanks for the quick reply!

#209 gigagames

  • Members
  • 52 posts

Posted 11 June 2012 - 02:54 PM

Hii,
if i start dumpinv.lua its say :
dumpinv.lua:14: attempt to index ? (a nile value)
^^

#210 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 11 June 2012 - 04:39 PM

Well, then you didn't setup your environment correctly. you have to (re)boot the computer AFTER you placed the peripheral next to it.

#211 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 15 June 2012 - 07:42 AM

OK, here comes another rather big update... See first page for details.

#212 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 20 June 2012 - 02:27 PM

How do you think should damage values be represented by the inventory reader?
1) a value from 0 to 1, where 1 is totally damaged
2) a value from 0 to 1, where 1 is not damaged at all
3) the raw value from minecraft, use item.maxdamage to scale it

#213 kazagistar

  • Members
  • 365 posts

Posted 20 June 2012 - 03:06 PM

Are the minecraft values integers? Integers are usually the best. Can you return current, max?

#214 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 20 June 2012 - 05:56 PM

You could get the max value by querying the item's properties.

#215 LucasUK

  • New Members
  • 63 posts

Posted 25 June 2012 - 01:02 PM

For me the awesomeness of this is that u can literally control ur inventories and crafting using this! No other reliances except ur coding skills. Love it. Not tested yet.. got it loaded into my own setup on smp starting new game now. :P/> add waterproof pipe if not already! Much loveeee

#216 Jaap81

  • New Members
  • 11 posts

Posted 25 June 2012 - 09:14 PM

Hello!

This mod looks great and i think i've got it installed ok but is it possible that someone shows me some sample code on how to use the digital workbench? I'm trying now to get this thing working but without any succes..

This is what i am trying:
recipe = db.getRecipesFor(sticks)
print(recipe)
workbench.setRecipe("left",recipe)

I believe this should show me the recipe for sticks but in stead it shows: table:<some hex string>

this string changes everytime i run the program...

i also tried a couple of other things but non of it seems to work.

Hopefully someone can help me, some sample programs would be very much appriciated. i'm quite new to lua programming so i'm probably doing something wrong..

#217 kazagistar

  • Members
  • 365 posts

Posted 25 June 2012 - 10:52 PM

print() just shows you what object you got. This can be a number, string, boolean, function, thread, nil, userdata, or in this case, a table. What you want is to print what is inside the table. I don't have the mod, but you could try use textutils.tabulate(recipe).

#218 Jaap81

  • New Members
  • 11 posts

Posted 26 June 2012 - 07:13 PM

Ok, i'm a littlebit further now, i'm able to set a recipe in the digital workbench and then craft it. Now, the next problem i'm having is this: How do i clear the workbench?

For instance, when i put this recipe in it:

print(tostring(workbench.setRecipe("left",{plank,nil,nil,plank,nil,nil,nil,nil,nil,}))) i can create sticks so i figured when i put the recipe

print(tostring(workbench.setRecipe("left",{nil,nil,nil,nil,nil,nil,nil,nil,nil,}))) in, that this should clear the workbench but it doen't.

Essentialy whats happening is that the new recipe is layed over the old one... It there a trick to solve this? Some basic examples would be really appriciated!

Anyway, thanks for this great add-on, it really keeps minecraft interesting :P/>

#219 Xfel

    Peripheral Designer

  • Members
  • 512 posts

Posted 27 June 2012 - 05:57 PM

Thanks for mentioning it, I found the problem. It will be fixed in the next version...

#220 Yurameki

  • Members
  • 25 posts

Posted 30 June 2012 - 06:58 AM

Whenever I load this mod client side I get a block conflict with BlockAdvancedmachine for block 233 when adding ic2.common.BlockReactorChamber

Advanced machines has block 188, meanwhile the reactor chamber has 233...what exactly is going on here??????





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users