# Errors importing to openprocessing

**URL:** <https://discourse.processing.org/t/errors-importing-to-openprocessing/15569>\
**Category:** Coding Questions\
**Created:** [November 17, 2019, 8:13am UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569 "2019-11-17T08:13:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [November 17, 2019, 8:13am UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569/1 "2019-11-17T08:13:31Z")

</div>

So I’ve ran into an issue porting code from pde to open processing, at first i realised that i was assigning variable was functions which for some reason is acceptable for boolean values in the pde environment, ie

`Boolean toggle;`

then further in the code

```auto
void toggle(){

}

```

so Ive checked my code and no overloaded variables (if you can call it that) and yet the code still doesnt work, and prompts a undefined error, however openprocessing doesnt diagnose well and so i cannot identify the error.

> **[Functions library 2 - OpenProcessing](https://www.openprocessing.org/sketch/794364)**
>
> for lack of a better name, this is library which houses some of my most used functions, ill update as i get more ideas

heres the code in question, again it should completely work in pde, the toggle variables have been renamed tog and still the problem persists.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 17, 2019, 8:47am UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569/2 "2019-11-17T08:47:14Z")

</div>

> [@paulgoux](#):
>
> So I’ve ran into an issue porting code from pde to open processing,

Can you post your whole Java Mode original project folder in GitHub? 🐙  
Follow the way I did for this 1 below: 👇  
[GoSubRoutine.GitHub.io/Grumbo/Grumbo\_Adventure\_OOP/](http://GoSubRoutine.GitHub.io/Grumbo/Grumbo_Adventure_OOP/)

> **[GitHub - GoSubRoutine/Grumbo](https://github.com/GoSubRoutine/Grumbo)**
>
> Contribute to GoSubRoutine/Grumbo development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [November 17, 2019, 12:27pm UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569/3 "2019-11-17T12:27:44Z")

</div>

Does it need to include an index.html file?

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 17, 2019, 12:31pm UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569/4 "2019-11-17T12:31:15Z")

</div>

No need. The “index.html” there is just so it is runnable on GitHub too.

I’m just asking for the original code you have running in Processing’s Java Mode.

B/c the 1 I’ve downloaded from OpenProcessing isn’t working inside Processing either!

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [November 17, 2019, 12:43pm UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569/6 "2019-11-17T12:43:58Z")

</div>

- It’d be better if you had uploaded the whole project folder.
- Like in my repo, all files are inside project folder: “Grumbo\_Adventure\_OOP/”
- B/c the main tab file is named: “Grumbo\_Adventure\_OOP.pde”

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [November 17, 2019, 12:49pm UTC](https://discourse.processing.org/t/errors-importing-to-openprocessing/15569/7 "2019-11-17T12:49:02Z")

</div>

> **[paulgoux/project](https://github.com/paulgoux/project)**
>
> Contribute to paulgoux/project development by creating an account on GitHub.
