Author Topic: Playing with the ObeyBrew tutorials  (Read 2926 times)

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #30 on: May 17, 2012, 05:09:42 AM »
Living the dream :D

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #31 on: June 05, 2012, 01:03:01 AM »
ok, so I got my new laptop, and Ithink I've installed HuC correctly.  before I was thinking it was some kind of package, like devpac, but I'm guessing I should use notepad and drop my code in after.  I'm gonna be coding on the bus :3

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Playing with the ObeyBrew tutorials
« Reply #32 on: June 05, 2012, 01:25:48 AM »
Notepad++ or GTFO!
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #33 on: June 05, 2012, 02:09:25 AM »
Notepad++ or GTFO!

I think I will actually.  I do like the original notepad though - one of the best Windows applications ever!

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: Playing with the ObeyBrew tutorials
« Reply #34 on: June 05, 2012, 03:15:54 AM »
I use CrimsonEditor. It hasn't been updated in a long time, but who cares? It recognizes code syntax and helps format it all nice-like, too.
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Playing with the ObeyBrew tutorials
« Reply #35 on: June 05, 2012, 03:27:08 AM »
that's because Notepad++ is basically the same thing but better..   
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

spenoza

  • Hero Member
  • *****
  • Posts: 2751
Re: Playing with the ObeyBrew tutorials
« Reply #36 on: June 05, 2012, 03:46:17 AM »
I don't need better. I just need enough. I'm set. If CE starts to piss me off, Notepad++ is my next stop.
<a href="http://www.pcedaisakusen.net/2/34/103/show-collection.htm" class="bbc_link" target="_blank">My meager PC Engine Collection so far.</a><br><a href="https://www.pcenginefx.com/forums/" class="bbc_link" target="_blank">PC Engine Software Bible</a><br><a href="http://www.racketboy.com/forum/" c

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Playing with the ObeyBrew tutorials
« Reply #37 on: June 05, 2012, 04:04:22 AM »
I don't need better. I just need enough. I'm set. If CE starts to piss me off, Notepad++ is my next stop.

yep.  I just stick to N++ since it updates regularly and has some plugins I like, like the hex-viewer.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

roflmao

  • Hero Member
  • *****
  • Posts: 4830
Re: Playing with the ObeyBrew tutorials
« Reply #38 on: June 05, 2012, 04:54:18 AM »
I don't know how I got by before I found out about Notepad++.  It's awesome. :)

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #39 on: June 05, 2012, 10:09:40 PM »
Part of the problem is that the zipped file of the HuC stuff subdivides all the files into different directories, but HuC seems to want everything lumped together in the same directory. So am I just supposed to work with one monolithic directory that has everything on the same level? And if so, why did the zip file put everything in directories?

NM, I'm apparently supposed to path this shit, which is annoying because my path is already pretty large, but oh well.

Spenoza, did the path thing work?  I'm getting the same result, despite having pathed the include folder.  Maybe I've done it wrong and need to re-check (which I will do later).  It's very annoying that I don't have a backslash on my tiny keyboard.  I need to use the onscreen one.

cabbage

  • Sr. Member
  • ****
  • Posts: 342
Re: Playing with the ObeyBrew tutorials
« Reply #40 on: June 05, 2012, 11:12:14 PM »
I'm getting the same result, despite having pathed the include folder.  Maybe I've done it wrong and need to re-check (which I will do later).
the PATH environment variable should point to bin directory; PCE_INCLUDE environment variable should point to the include directory (something like C:\HuC\include\pce depending on where you installed)

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #41 on: June 05, 2012, 11:30:44 PM »
I'm getting the same result, despite having pathed the include folder.  Maybe I've done it wrong and need to re-check (which I will do later).
the PATH environment variable should point to bin directory; PCE_INCLUDE environment variable should point to the include directory (something like C:\HuC\include\pce depending on where you installed)

Ah, so I have to do it with the BIN directory too?  That makes sense as it didn't know what huc was, I had to drag and drop.  I put them all in the same place, c:\program files\Huc_win_3.21\Include (or whatever)

nodtveidt

  • Guest
Re: Playing with the ObeyBrew tutorials
« Reply #42 on: June 06, 2012, 04:03:45 AM »
The bin directory can be added to your PATH, or you can simply copy the executables into your path somewhere.

touko

  • Hero Member
  • *****
  • Posts: 953
Re: Playing with the ObeyBrew tutorials
« Reply #43 on: June 06, 2012, 09:54:46 PM »
You can use this .bat
Quote
cls
@echo off

SET EXTENSION=%~x1
SET NAME=%1
SET CHEMIN=%~dp0
SET PCE_INCLUDE=%CHEMIN%include\pce

If "%EXTENSION%"==".c" goto Compilc
If "%EXTENSION%"==".C" goto Compilc
:Compilasm
bin\pceas.exe %1
goto Fin

:Compilc
bin\huc.exe %1
bin\pceas.exe %NAME:~0,-2%.s  

:Fin    

it automaticaly fix the environment variables of your current project.
It should be only named compil.bat (for exemple),and copied,executed, in your project folder .

it works like that:
In a dos window(and in your project folder) : compil.bat your_project.c
The output will be: your_project.pce

No need to specify any environment variables.
You can use multiple projects, you just have to copy compil.bat in all your project folder, and execute it in each specific folder .

« Last Edit: June 06, 2012, 10:45:23 PM by touko »

soop

  • Hero Member
  • *****
  • Posts: 2828
Re: Playing with the ObeyBrew tutorials
« Reply #44 on: June 06, 2012, 10:04:08 PM »
Nice!  I'm gonna do some stuff on Saturday when I have time to sort out some stuff on the laptop.  But that batch file looks pretty sweet ^__^