forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Searching In Lines

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Thu Oct 02, 2008 1:22 pm    Post subject: Searching In Lines Reply with quote

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
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Oct 02, 2008 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Oct 02, 2008 4:42 pm    Post subject: Reply with quote

BTW nice of you to make 4 threads of the same thing :-D

I appreciate the effort.

Wally
Back to top
View user's profile Send private message AIM Address
PosX100



Joined: 15 Aug 2007
Posts: 98

PostPosted: Fri Oct 03, 2008 5:22 am    Post subject: Re: Searching In Lines Reply with quote

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
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Fri Oct 03, 2008 9:26 am    Post subject: Reply with quote

Now listin, I have been programming in C for awhile. This for the psp and you just dont understand.
Back to top
View user's profile Send private message AIM Address
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Fri Oct 03, 2008 9:34 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Oct 03, 2008 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Ooblik



Joined: 10 Apr 2008
Posts: 38

PostPosted: Fri Oct 03, 2008 11:05 am    Post subject: Reply with quote

IF YOU DON'T KNOW ENGLISH GET OUT OF THE ENGLISH FORUMS!!! WE CAN'T / WON'T HELP YOU!!!
Back to top
View user's profile Send private message
PosX100



Joined: 15 Aug 2007
Posts: 98

PostPosted: Fri Oct 03, 2008 9:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sat Oct 04, 2008 11:01 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Oct 04, 2008 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
PosX100



Joined: 15 Aug 2007
Posts: 98

PostPosted: Sat Oct 04, 2008 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sat Oct 04, 2008 10:58 pm    Post subject: Reply with quote

I never expected anyone too. Ill took into it.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group