| View previous topic :: View next topic |
| Author |
Message |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Thu Oct 02, 2008 1:22 pm Post subject: Searching In Lines |
|
|
| Hey everyone. I have a real problem. I created a programming language, but if dont want to read line by line. It just want to read the first line, and thats it. Ever since I started to use memcpy, memset, etc., it Havent work write. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Thu Oct 02, 2008 1:56 pm Post subject: |
|
|
Not PSP development related. Would a mod please lock this thread?
I will say, this: you can make you own language but can't read just one line?!? Sorry, but that's one language NO ONE will EVER use. :P |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Thu Oct 02, 2008 4:42 pm Post subject: |
|
|
BTW nice of you to make 4 threads of the same thing :-D
I appreciate the effort.
Wally |
|
| Back to top |
|
 |
PosX100
Joined: 15 Aug 2007 Posts: 98
|
Posted: Fri Oct 03, 2008 5:22 am Post subject: Re: Searching In Lines |
|
|
| Dariusc123456 wrote: | | I created a programming language |
In your dreams , maybe...
Efficient Scripting language without parsing text & building the code i don't think that exists(except a few inefficient parser implementations that i've seen... reading/parsing "commands" in plain text format at runtime...).
First learn C or C++ , then find information about parsing , building AND executing opcodes(and trust me , it isn't that easy as you might be thinking). |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Fri Oct 03, 2008 9:26 am Post subject: |
|
|
| Now listin, I have been programming in C for awhile. This for the psp and you just dont understand. |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Fri Oct 03, 2008 9:34 am Post subject: |
|
|
| J.F. wrote: | Not PSP development related. Would a mod please lock this thread?
I will say, this: you can make you own language but can't read just one line?!? Sorry, but that's one language NO ONE will EVER use. :P |
IT ONLY READ ONE LINE |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Fri Oct 03, 2008 9:58 am Post subject: |
|
|
| Dariusc123456 wrote: | | J.F. wrote: | Not PSP development related. Would a mod please lock this thread?
I will say, this: you can make you own language but can't read just one line?!? Sorry, but that's one language NO ONE will EVER use. :P |
IT ONLY READ ONE LINE |
That's still just a C/C++ problem, not a PSP problem. If you can't even do standard C/C++, you shouldn't be trying to make your own language.
Sounds like you need to get this working on a PC first, then try to move it the PSP. |
|
| Back to top |
|
 |
Ooblik
Joined: 10 Apr 2008 Posts: 38
|
Posted: Fri Oct 03, 2008 11:05 am Post subject: |
|
|
| IF YOU DON'T KNOW ENGLISH GET OUT OF THE ENGLISH FORUMS!!! WE CAN'T / WON'T HELP YOU!!! |
|
| Back to top |
|
 |
PosX100
Joined: 15 Aug 2007 Posts: 98
|
Posted: Fri Oct 03, 2008 9:26 pm Post subject: |
|
|
| Dariusc123456 wrote: | | Now listin, I have been programming in C for awhile. This for the psp and you just dont understand. |
rofl ...H.o.S ftw!!! |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Sat Oct 04, 2008 11:01 am Post subject: |
|
|
| J.F. wrote: | | Dariusc123456 wrote: | | J.F. wrote: | Not PSP development related. Would a mod please lock this thread?
I will say, this: you can make you own language but can't read just one line?!? Sorry, but that's one language NO ONE will EVER use. :P |
IT ONLY READ ONE LINE |
That's still just a C/C++ problem, not a PSP problem. If you can't even do standard C/C++, you shouldn't be trying to make your own language.
Sounds like you need to get this working on a PC first, then try to move it the PSP. | The pc version works perfectly. Its based on C, but with psp version, it only read one line. encrypted or decrypted, it just read one line. ill release the code if I can find any problem. I know making a programming language itnt easy, every thing I ask help for is not easy to make. Even sony have problems with coding. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Oct 04, 2008 3:00 pm Post subject: |
|
|
| Dariusc123456 wrote: |
The pc version works perfectly. Its based on C, but with psp version, it only read one line. encrypted or decrypted, it just read one line. ill release the code if I can find any problem. I know making a programming language itnt easy, every thing I ask help for is not easy to make. Even sony have problems with coding. |
Well, there isn't much we can do without some kind of code. If it works on a PC but not the PSP, look at how you handle fetching a line. Maybe you're making an assumption about the return value that just happens to work on the PC. If you want an example of reading data from a file a line at a time on the PSP, look at my settings code in psp_main.c of Doom. It reads all the lines to get the settings, reading one line at a time. I don't see how that can be a problem unless you are relying on something PC specific.
Does the one line it reads get processed correctly? Knowing that would also help pinpoint the problem. Maybe it has a problem with that first line and simply quits.
Another thing might be the stack. The stack between a PC progam and a PSP program are different. The PSP defaults to a small stack. One person was trying to do an SDL example that used over a meg of stack space (local variable arrays), which was far too big. After making the PSP stack bigger, it ran fine. To change the stack size, add this to main.c:
| Code: | | PSP_MAIN_THREAD_STACK_SIZE_KB(size); |
where size is a constant giving the number of kilobytes. |
|
| Back to top |
|
 |
PosX100
Joined: 15 Aug 2007 Posts: 98
|
Posted: Sat Oct 04, 2008 9:03 pm Post subject: |
|
|
| Quote: | The pc version works perfectly. Its based on C, but with psp version, it only read one line.
|
... loL.
| Quote: | encrypted or decrypted, it just read one line.
|
Encrypted ... what?
MAYBE you're up to something else ... and hiding your UBER PRoJeCT??
| Quote: |
I know making a programming language itnt easy
|
Its called SCRIPTING language , lmao.
I highly doubt you have something like that running(except if you're trying to port something,but again , judging by your posts ... can't take you seriously , sorry...)... |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Sat Oct 04, 2008 10:58 pm Post subject: |
|
|
| I never expected anyone too. Ill took into it. |
|
| Back to top |
|
 |
|