This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
askolds11's profile picture

Enhanced Portals 3 w/ DW20 button API

Started by askolds11, 12 June 2017 - 03:22 PM
askolds11 #1
Posted 12 June 2017 - 05:22 PM
Hello! I'm trying to make a program for Enhanced Portals 3 with DW20's button API, i'm not a programmer so i'm trying to use already made programs and combine them. I'm trying to combine these two programs:
https://pastebin.com/tznTKcWk - DW20's Mystcraft portal
http://www.computerc...ialling-device/ - raptorsystems working enhanced portals 3 touch screen thing.

This is the code I've written using those 2 programs as samples: https://pastebin.com/C8DVb2kv
When running the program, i'm getting an error, something along the lines of bios:14: [script .temp]:80
From what I understand the problem is in the line "while true do"

Also, the main thing i'm trying to modify is DW20's Mystcraft portal by adding in raptorsystems code since it's made for Enhanced Portals 3.

Any help is greatly appreciated, thanks!
KingofGamesYami #2
Posted 12 June 2017 - 07:07 PM
Line 78 is missing ()

Also, Direwolf's API is confusing and weird. Most people use touchpoint by Lyqyd (on mobile or I'd link).
askolds11 #3
Posted 12 June 2017 - 07:08 PM
More current version of the code: https://pastebin.com/j3AbGe01

Found out the issue in that part, but I've got an issue in the part i was expecting to go completely wrong at, my friend understands more lua than me but still not a lot, we might find a fix later but right now we're stuck at the fillTable() with an error: button:33: attempt to perform arithmetic on string

From my understanding it's an error in the API, but i'm pretty sure i'm just using it wrong.

Sorry, was writing a reply while you had replied so didn't see it, but me and my friend found that issue and got to another issue.
Gonna try the touchpoint API and try to figure this out, thanks!
Dog #4
Posted 12 June 2017 - 08:07 PM
Here's the link to Lyqyd's Touchpoint API
askolds11 #5
Posted 13 June 2017 - 07:23 PM
Current code: https://pastebin.com/pA5jL1Td

Hello again! Thanks for the help, the program is now using Lyqyd's Touchpoint API, and so far no bugs are happening!
I've made the location buttons dial, terminate and also the terminate button terminate without problems, but I can't think of any way to do some stuff - how could I:
  • make the page buttons functional?
  • make the refresh button functional(get locations again, and, if there are new locations, add them to the list)?
  • make text just under the page buttons that says "Page X of Y"

Thanks!