English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 19 November 2017, 17:02   #61
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
good news. is NAGI fast enough?
and yes, I should upload those to aminet, but I'm a bit lazy atm
emufan is offline  
Old 19 November 2017, 17:50   #62
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
Quote:
Originally Posted by emufan View Post
good news. is NAGI fast enough?
and yes, I should upload those to aminet, but I'm a bit lazy atm
It is not as fast as said really fast...it is playable but not super, super, super fast. A proper optimization and implementation of AMMX would be nice and removing anything that could unnecessary slow it down like emulating paula when you have real paula or using AHI when you have real paula or loops that could be optimized to enhance performance...those little factors here and there would add a huge speed boost.

Please consider uploading to aminet!
xboxown is offline  
Old 19 November 2017, 20:49   #63
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by xboxown View Post
It is not as fast as said really fast...it is playable but not super, super, super fast.
ok. one game I tested was also a bit slow in winuae
Quote:
Please consider uploading to aminet!
NAGI uploaded to aminet
not sure about bermuda syndrome, since the old version does work aswell, it was reported above.
maybe the emulators on another day.
emufan is offline  
Old 19 November 2017, 23:44   #64
James
Registered User
 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 796
Quote:
Originally Posted by emufan View Post
NAGI uploaded to aminet
Thanks!
Paul Hill ported Sarien to Amiga back in 2001, no sound, works in a window on RTG.

https://sourceforge.net/projects/sar...0.lha/download
James is offline  
Old 20 November 2017, 01:13   #65
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by James View Post
Thanks!
Paul Hill ported Sarien to Amiga back in 2001, no sound, works in a window on RTG.
np, but I did not much testing with NAGI, I cannot say if sound/music will work as expected
emufan is offline  
Old 20 November 2017, 19:52   #66
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,311
Quote:
Originally Posted by James View Post
Thanks!
Paul Hill ported Sarien to Amiga back in 2001, no sound, works in a window on RTG.

https://sourceforge.net/projects/sar...0.lha/download
That would be me Sarien was pretty much replaced by SCUMMVM (might even be some Sarien code in SCUMMVM I'm not sure).
nogginthenog is offline  
Old 26 November 2017, 18:30   #67
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by emufan View Post
(rtg not working for me)
I found the issue with my non working winuae uaegfx RTG.
with uaegfx in sys:devs/Monitors/ it did crash / stalled with any version of iPrefs (40.7 42.1 44.5).
reason was layers.library 45.27 which I installed with LoadResident in my startup-sequence.
once I did removed the layers.library from my ss, I now got a working RTG again.
emufan is offline  
Old 26 November 2017, 23:37   #68
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
Hey Emufan, NAGI and the other game you ported and lots of other games keep giving me free: end of block corrupt wit ixemul as the culprit. Is there way you can help me with this? Emufan can you compile nagi without ixemul dependency?.....ixemul just seems like trash to me!!

Thanks in advance!
xboxown is offline  
Old 27 November 2017, 01:24   #69
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by xboxown View Post
can you compile nagi without ixemul dependency?.....ixemul just seems like trash to me!!
it failed the other day, but maybe now, just a second.

zoned: NAGI-68k-noixemul.lha , just try this one.
020, 040 and 030+881 version build.

--> reminder: no optimization + adding glibc bsd/ftime.c

#1) hmm, now nothing works for me. all version, the one from aminet
and the noixemul version do not work, guru, winuae crash, halt3 , winuae crash-dump.
I hope you get some better result

Last edited by emufan; 27 November 2017 at 02:31.
emufan is offline  
Old 27 November 2017, 02:42   #70
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
It gurues my Amiga instantly....immediate guru! HELP!!
xboxown is offline  
Old 27 November 2017, 05:47   #71
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by xboxown View Post
It gurues my Amiga instantly....immediate guru! HELP!!
I thought it's just my patched system, for whatever reason :/
really no idea what's causing this. same src code, just changed that option, not to use ixemul.library.
I could start it once, with a game from the nagi website, title screen, some seconds later it did guru :/
emufan is offline  
Old 27 November 2017, 06:26   #72
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
What do you suggest?
xboxown is offline  
Old 27 November 2017, 07:01   #73
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by xboxown View Post
What do you suggest?
I have no clue. no idea what causes this total different behavior ( ixemul vs noixemul)

I could run the ixemul based nagi in a more clean config in winuae,
maybe the crash i reported above is caused by some system patches - again no idea.

it's a clean 3.1 wb only added icon.library by peterk, no other patches.
this way i can use the nagi from aminet.

if you have another cf card you may try to install a basic workbench 3.1 only,
with picasso96 driver and ixemul.library from aminet.
perhaps this way the aminet version may work for you.

#1) did you try differnt games with the aminet version?
do all games trigger the "free: ... corrupt" error?

#2) which cpu version of ixemul.library are u using?
you may try using a version for another cpu, maybe 000 instead of 040. use those with s after the cpu type (soft float).

Last edited by emufan; 27 November 2017 at 07:12.
emufan is offline  
Old 27 November 2017, 21:47   #74
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
Quote:
Originally Posted by emufan View Post
I have no clue. no idea what causes this total different behavior ( ixemul vs noixemul)

I could run the ixemul based nagi in a more clean config in winuae,
maybe the crash i reported above is caused by some system patches - again no idea.

it's a clean 3.1 wb only added icon.library by peterk, no other patches.
this way i can use the nagi from aminet.

if you have another cf card you may try to install a basic workbench 3.1 only,
with picasso96 driver and ixemul.library from aminet.
perhaps this way the aminet version may work for you.

#1) did you try differnt games with the aminet version?
do all games trigger the "free: ... corrupt" error?

#2) which cpu version of ixemul.library are u using?
you may try using a version for another cpu, maybe 000 instead of 040. use those with s after the cpu type (soft float).
Here is what I will do! I will get the original nagi you ported in aminet which need ixemul and I will install a basic workbench 3.1 with rtg and ixemul for nagi and play it that way. But I need help in how to do this. After I install workbench 3.1 basically what files I need to install to get it to work with nagi? Like what drivers, etc the basics just enough to run the game?

Thanks in advance.
xboxown is offline  
Old 27 November 2017, 22:11   #75
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
yes, the aminet version is the best working atm.
an install HowTo you find on the vampire wiki.
How to : Install the SAGA RTG Driver.

for the ixemul.library, just download the aminet 48.3 - there is no installer.
in the archive you find the sys folder. in a shell do this:
Code:
copy ixemul-48.3-bin-m68k/sys/libs/ixemul-000.library LIBS:ixemul.library
copy ixemul-48.3-bin-m68k/sys/libs/ixnet-000.library LIBS:ixnet.library
copy ixemul-48.3-bin-m68k/sys/l/ixpipe-handler L:ixpipe-handler
this will copy the 68000 version of the libs to your LIBS: folder.
Code:
copy ixemul-48.3-bin-m68k/sys/libs/ixemul-020s.library LIBS:ixemul.library
copy ixemul-48.3-bin-m68k/sys/libs/ixnet-020s.library LIBS:ixnet.library
copy ixemul-48.3-bin-m68k/sys/l/ixpipe-handler L:ixpipe-handler
this will copy the 68020 with soft float version of the libs to your LIBS: folder.

not sure which cpu version works best, is most compatible.
if you choose another cpu version use the one with "s" after the cpu type.
020s 040s 060s -> those work without real fpu.

not really sure about the ixpipe-handler, but it wont hurt to putit in L: folder

once the RTG and ixemul are installed, change workbench screenmode to a RTG mode,
so you can run NAGI. I think thats all.

Last edited by emufan; 27 November 2017 at 22:18.
emufan is offline  
Old 28 November 2017, 05:08   #76
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
it works! it works! It works REAAAAALLLY FAST!! When I ran it outside ApolloOS it ran like a horse! SOOOOOOOOOOOOOOOO FAST and no issues or problem alone! perfect! I am going to download all those AGI games and have fun with them! THANKS!
xboxown is offline  
Old 28 November 2017, 05:49   #77
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
I discovered bug! please help fix! You know the one you released in aminet? TAKE THAT ONE..exactly the same and help fix this bug. I AM UNABLE TO TYPE...the keyboard key interaction doesn't work. So in the game I can only move around but I am unable to type:

Look
Open
get item
etc

all of these would not allow me to type. Please help fix this! Thanks.

I have ten agi games I want to play but not one of them I can type anything on them!
xboxown is offline  
Old 28 November 2017, 06:58   #78
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
Quote:
Originally Posted by xboxown View Post
it works! it works! It works REAAAAALLLY FAST!!
good news
Quote:
Originally Posted by xboxown View Post
... this bug. I AM UNABLE TO TYPE...the keyboard key interaction doesn't work.
oh, ok. I'll have a look. for sure some SDL "feature".
when I run a test game I only did click around with the mouse, not really playing the game.
I try to find the issue.
emufan is offline  
Old 28 November 2017, 08:11   #79
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
seems to be some stuff in src/ui/events.c
Code:
// map the keys depending on system (ibm in this case)
// TODO write amiga?  apple ][.. um.. mac??  why don't I scratch my ass?
// for the next gen of agi.. define a set of keys? that's the same over systems?
u16 system_keymap(SDL_keysym *keysym)
{
	if (  (keysym->sym >= SDLK_F1) && (keysym->sym <= SDLK_F10)  )
	{
		// f1-f12
		return (keysym->sym - SDLK_F1 + 0x3B) << 8;
	}
	else if ((keysym->mod & KMOD_ALT) != 0) 
	{
		if ( (keysym->sym >= SDLK_a) && (keysym->sym <= SDLK_z)  )
			return system_alt_map[keysym->sym - SDLK_a] << 8;	// alt a-z
	}
	else if ((keysym->mod & KMOD_CTRL) != 0)
	{
		if ((keysym->sym >= SDLK_a) && (keysym->sym <= SDLK_z)  )
			return keysym->sym - SDLK_a + 0x01;	// ctrl a-z
	}
keys are defined in /SDL/include/SDL/SDL_keysym.h

is "<< 8;" some sort of bit shift?


#1) you can input some empty string if you hold CTRL while typing, cursor moves <ENTER>
the game responses with "i dont understand"

#2) just found out, how to handle multiple games:
create subfolder for each game. once nagi starts , you can choose from a list of available games:
Code:
bin/
bin/nagi.exe
bin/font_4x8.nbf
bin/nagi.ini
...
bin/game1/
bin/game2/
...

Last edited by emufan; 28 November 2017 at 08:23.
emufan is offline  
Old 28 November 2017, 08:34   #80
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
Quote:
Originally Posted by emufan View Post
seems to be some stuff in src/ui/events.c
Code:
// map the keys depending on system (ibm in this case)
// TODO write amiga?  apple ][.. um.. mac??  why don't I scratch my ass?
// for the next gen of agi.. define a set of keys? that's the same over systems?
u16 system_keymap(SDL_keysym *keysym)
{
    if (  (keysym->sym >= SDLK_F1) && (keysym->sym <= SDLK_F10)  )
    {
        // f1-f12
        return (keysym->sym - SDLK_F1 + 0x3B) << 8;
    }
    else if ((keysym->mod & KMOD_ALT) != 0) 
    {
        if ( (keysym->sym >= SDLK_a) && (keysym->sym <= SDLK_z)  )
            return system_alt_map[keysym->sym - SDLK_a] << 8;    // alt a-z
    }
    else if ((keysym->mod & KMOD_CTRL) != 0)
    {
        if ((keysym->sym >= SDLK_a) && (keysym->sym <= SDLK_z)  )
            return keysym->sym - SDLK_a + 0x01;    // ctrl a-z
    }
keys are defined in /SDL/include/SDL/SDL_keysym.h

is "<< 8;" some sort of bit shift?


#1) you can input some empty string if you hold CTRL while typing, cursor moves <ENTER>
the game responses with "i dont understand"

#2) just found out, how to handle multiple games:
create subfolder for each game. once nagi starts , you can choose from a list of available games:
Code:
bin/
bin/nagi.exe
bin/font_4x8.nbf
bin/nagi.ini
...
bin/game1/
bin/game2/
...


Eeee I can hardly wait to play the games I have this zombie game I really, really want to play!! Hope you can map the Amiga keys into soon!!! - bites shirt -
xboxown is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:45.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11565 seconds with 14 queries