Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - miotatsu

Pages: 1 ... 14 15 [16] 17 18 ... 22
226
Computer Projects and Ideas / Re: BasiC++
« on: December 24, 2009, 05:29:13 pm »
this is just some example code in C++ of what im trying to get my Interpreter to do, the interpreter is supposed to open a file with BasiC++ code in it, rip lines of code out of it and do something based on the code it ripped, this example program demonstrates that it is failing to open the file for an unknown reason, basically you can consider that code i posted as a source of an example interpreter, what i'm working on right now is trying to get that program to successfully open a file, if i can do that i will be able to get back to working on BasiC++ commands

227
Computer Projects and Ideas / Re: BasiC++
« on: December 24, 2009, 04:43:04 pm »
i may make a custompxl command but right now its not on the top of the list of things to get done :P however right now i am having a rather strange issue, i created a simple system to load a generic file and interact with its contents, strangely tho it will not open the file, here is the code:
Code: [Select]
#include <iostream>
#include <fstream>
#include <string>


using namespace std;

ifstream file;
string Filename;

void run();

int main (int argc, char *argv[])
{
if (argc == 2){
string Filename = argv[1]; }
run();
cin.get();
return 0;
}

void run()
{
string line;
file.open(Filename.c_str());
if (file.is_open())
{
while (! file.eof() )
{
getline (file,line);
cout << line << endl; }
file.close(); }
}
what this is supposed to do is you drag a text file (with text in it) onto the exe and it outputs the contents of it into the console window, however when a file is dragged onto it the console opens as it should, but no text is output-ed (the file fails to load) 

228
Computer Projects and Ideas / Re: BasiC++
« on: December 24, 2009, 03:32:56 pm »
yeah, just keep in mind that if you use a custom screen i won't have support for commands that use the pixel array because it will be based off of the original calc dimensions or a direct multiple of said dimensions, but because a custom screen size most likely would not be a multiple of the original dimensions the pxl commands would not work properly and thus need to be disabled, this is made upf ro by the fact that it will have support for custom sprites and image loading (or at least this is what i plan on having)

229
Computer Projects and Ideas / Re: BasiC++
« on: December 24, 2009, 03:01:57 pm »
right now it just uses a small little window the same size as a calc screen and tinted the same color as well, but i do plan on supporting larger/custom screen sizes later on

230
Computer Projects and Ideas / Re: BasiC++
« on: December 24, 2009, 12:22:04 pm »
ah thanks, i overlooked those *updates post*

231
Computer Projects and Ideas / ATI-BASIC
« on: December 24, 2009, 03:23:09 am »
BasiC++ will be an interpreted programming language for the PC based directly off of Ti-Basic
currently it has:
ClrDraw
Pxl-On
Pxl-Off
Pxl-Change
Getkey(sort of)
storing(sort of)

right now i am working on the font system to be used with Text()

current features i want to get implemented are:
and
Ans
Else
End
For
getkey
Goto
If
Input
Lbl
not
or
Pause
Prgm
Prompt
Pxl-Test
RecallPic
Repeat
Return
Stop
Text
While
xor

credits go to pifreak for the original BasiC++ source :{D

info on why file loading wasn't working:

i was declaring
std::string Filename;
globally, (this is a string to hold the name of the file that gets loaded into the system, its declared globally so everything can use the code, it isn't limited to one single function)
next in the main function i stored the contents of the Filename into the string so that it can be opened in my run() function
std::string Filename = argv[1];
(when you drag and drop a file onto the program the name of the file is stored in Argv[1])
This will not work. What happens here is that the string is re-declared locally, this means it can't be used outside of main, this is because putting std::string in front of Filename tells it that you are declaring filename as a string, which overides the previous declaration.
in order to fix this you simply do
Filename = argv[1];
as can be seen it is a very basic mistake, but it should definitely be payed attention to because it can cause a lot of trouble if one doesn't understand it
thanks go to Chile from Efnet's #C++ for pointing this out to me, and pifreak for helping as well and stuff :)

232
Computer Projects and Ideas / Re: piworld PC
« on: December 23, 2009, 06:32:29 pm »
I have some exciting news, today i received the source code for the BasiC++ project, as well as the source to an old program made by Acaceol. as of now i will be putting the development of Piworld and Piworld PC on hold for development of BasiC++ as i will be taking over that project. For those of you that don't know BasiC++ is a program that interprets code from a text file, it will be a way for people to easily program games for PC, the language is based directly off of Ti-Basic.

233
TI-BASIC / Re: [idea] Celtic III patching
« on: December 18, 2009, 07:26:12 pm »
theres an easy solution to that, rather than keeping track of all patches just do this: store a patch number,and each new patch would have a variable that would be read, it will only allow you to patch it if the number is one higher, that way it forces you to patch in order and not skip any patches, which completely solves the problem :{D the only thing about this solution is you need to make sure whatever you use to store the patch var in doesnt get deleted, if it does everything would get mucked up

234
Introduce Yourself! / Re: Heya.
« on: December 13, 2009, 04:28:54 pm »
welcome to Omnimaga Ace ^.^

235
Miscellaneous / Re: What's a lobster?
« on: December 10, 2009, 04:55:23 pm »
i am not a "tatsu" im a fox...with a floating little hat :O
...but you can call me tatsu :X

236
TI-Nspire / Re: TI-Nspire GB Emulator
« on: December 08, 2009, 08:25:18 pm »
so does this mean it will run slower on the actual calc then?

237
go for it :{O

238
Computer Projects and Ideas / Re: piworld PC
« on: December 06, 2009, 05:38:12 pm »
right now the calc version has 6 areas, a warp tile, creatures to fight, npcs to talk to, and a Health display, as of now the PC version has only the basic core done to support map loading, collision detection and other events, and things of that sort, none of the content in the pc version is official yet except for the music.

239
TI Z80 / Re: Someone should revive the Online Hex Disassembler...
« on: December 06, 2009, 03:47:16 pm »
i think it would be a great idea if a new one of these were made, i also think it would be epic to have a 8xp to .txt for BASIC programmers, the problem with normal methods being problems with fonts, it would have to convert some things like the store symbol (→) into something every computer can display such as ->
if someone made such a tool i would probably take over the pretty much abandoned BasiC++ project.

240
Computer Projects and Ideas / Re: piworld PC
« on: December 05, 2009, 08:49:35 pm »
indeed, i am wondering how i would go about a method to pause, scroll to the next screen, and then continue when you reach the side of the screen, as opposed to just panning the screen and then displaying it like i do now. today im going to start work on a map editor that deals with 40x40 and 40x40 tiles to go along with it

Pages: 1 ... 14 15 [16] 17 18 ... 22