# Some tips & tricks

**URL:** <https://forum.xod.io/t/some-tips-tricks/4471>\
**Category:** XOD Ideas & Discussions\
**Created:** [September 30, 2020, 3:09am UTC](https://forum.xod.io/t/some-tips-tricks/4471 "2020-09-30T03:09:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 30, 2020, 3:09am UTC](https://forum.xod.io/t/some-tips-tricks/4471/1 "2020-09-30T03:09:13Z")

</div>

The idea is to contribute my experience, here something about the management of libraries, if someone has something else to add, welcome!

- Error
  - When uploading a library it is not shown on the site [xod.io/libs/](http://xod.io/libs/) …[example](http://xod.io/libs/cesars/mprls@0.0.4)
  - When downloading shows the error `INVALID_XODBALL_FORMAT {}` [cesars/mprls@0.0.4](http://xod.io/libs/cesars/mprls@0.0.4)

- Cause of error:
  - In the folder `"you_user"/xod/ __lib__ /"username_lib"/` there may be a folder or node with invalid names, examples: `utils - copy` , `Utils`, `UTILS`, …that folder invalidates the `xodball`, even if a node of it is not used.

- Solution:
  - [xod.io/libs/](http://xod.io/libs/cesars/mprls@0.0.4) library there is no solution because it cannot be downloaded.
  - The xodball file, [edit](http://notepad-plus-plus.org) manually and correct the invalid line.
  - Fix folder names in libraries

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 30, 2020, 3:28pm UTC](https://forum.xod.io/t/some-tips-tricks/4471/2 "2020-09-30T15:28:36Z")

</div>

Unwanted changes in libraries.

If the content of a library is changed, a pin, a node, etc. is moved or deleted. that change may affect subsequent operation.

- If the patch is not saved, the changes are not made, use reload `ctrl + r`.  
But if you are working on a project and you don’t want to lose the changes, you can save them in the following way.  
…  
Without closing the current instance `XOD(1)`, open `XOD(2)` again, create the necessary patches and copy from XOD(1) and paste into `XOD(2)`.  
`Reload` or close `without` saving `XOD(1)`, in `XOD(2)` the libraries will be without changes.

- Another option is to go to the XOD working folder and in `xod/ __lib__ / username_lib /` find the folder and make a copy. Example: `lib-orig` -\> `lib-orig-copy`, no spaces without capital letters.  
…  
Save the project, close XOD and delete `lib-orig` and replace with `lib-orig-copy`.

PS: a library published on the [xod.io/libs/](http://xod.io/libs/) can be re-downloaded, or a bifurcated XOD library can be deleted. But in a local libreary it is lost and cannot be recovered.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 30, 2020, 5:19pm UTC](https://forum.xod.io/t/some-tips-tricks/4471/3 "2020-09-30T17:19:45Z")

</div>

Compile “without board”.

- Sometimes I don’t want to upload a patch to the board, I just want to check that it compiles without errors.  
…  
Since XOD currently doesn’t allow boardless compilation, I just plug a USB-to-TTL adapter into it. If all is well it will compile and will only show the loading error at the end.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/f/fd9deb46978c0ff7b631deebd805f5d0ae8c5eef.jpeg) ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/6f7ad2fd9231b88735f5f26e0c51aade69314421.jpeg)  
…  
Could also use a physical serial port, or a virtual serial port, although it can happen that sometimes it keeps trying to load and it takes time to finish.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 30, 2020, 5:52pm UTC](https://forum.xod.io/t/some-tips-tricks/4471/4 "2020-09-30T17:52:10Z")

</div>

Direct upload `HEX` file generated by XOD.

- First you have to [search](https://www.voidtools.com/) for the file in temporary folders  
.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/3/38fd5ef71eeec239b33492441bd3cba5337680d0.png)  
.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/3/3c8a5d6479bf37fd62a4e76ce21fc58f5847c3da.png)

- Then you can use [Xloader](http://www.hobbytronics.co.uk/download/XLoader.zip) (only for UNO, NANO and MEGA)  
.  
 ![xloader1](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/c/c727dfdceb1be7468ec7c038aced09d3c09d2c45.jpeg)
