Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
100 user(s) are online (57 user(s) are browsing Forums)

Members: 0
Guests: 100

more...

Headlines

Forum Index


Board index » All Posts (jabirulo)




Re: YT stopped working with Odyssey
Just can't stay away
Just can't stay away


@walkero

Hi, was trying to see a twitch stream and got this as error output:

#KDH1:Comm/aiostreams/twitch.py -u https://www.twitch.tv/videos/2005030791
aiostreams vv1.7.6 (2022-12-04) - Developed by George Sokianos

Traceback (most recent call last):
File "KDH1:Comm/aiostreams/twitch.py", line 302, in <module>
main(sys.argv[1:])
File "KDH1:Comm/aiostreams/twitch.py", line 279, in main
videoInfo = aioapi.getVideoInfo(video['id'], video['type'])
File "KDH1:Comm/aiostreams/twitch.py", line 126, in getVideoInfo
return json.loads(responseData)
File "Utilidades:Comm/aiostreams/simplejson/__init__.py", line 518, in loads
return _default_decoder.decode(s)
File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 79, in scan_once
return _scan_once(string, idx)
File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 70, in _scan_once
raise JSONDecodeError(errmsg, string, idx)
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
#


https://aiostreams.amiga-projects.net/ ... /channel/429381908/videos

Go to top


Re: updating sgit
Just can't stay away
Just can't stay away


@Raziel

yup got same problem here:
#Devel:SGIT/sgit clone https://github.com/scummvm/scummvm scummvm
net   4% (15169 kb62823/1266113)  /  idx   4% (60680/1266113)  /  chk   0% (   0/   0)
libgit error (12): SSL errorunknown error
#

Go to top


Re: SketchBlock XMas Card Video 2023
Just can't stay away
Just can't stay away


Merry Xmas and awesome draw/card!!!!

Go to top


Re: 2023 - December - Rick Dangerous
Just can't stay away
Just can't stay away


JABIRULO: 8431

Resized Image

Go to top


Re: Rick Dangerous SDL2 port
Just can't stay away
Just can't stay away


@Maijestro

thx you mate!!!!

Now we have a game for "AmigaOS 4 Monthly Roundup"

Go to top


Re: wb2filer v0.5
Just can't stay away
Just can't stay away


@Karmelito


https://wiki.amigaos.net/amiga/autodocs/workbench.doc.txt

...
workbench.library/ChangeWorkbenchSelectionA workbench.library/ChangeWorkbenchSelectionA

NAME
ChangeWorkbenchSelectionA -- Change the selection states of icons
displayed by Workbench. (V44)

...

Go to top


Re: Rick Dangerous SDL2 port
Just can't stay away
Just can't stay away


@Maijestro

ok, such "black screen" is the "enter name" highscore screen but "hidden", seems we forgot to use
sysvid_setGamma(255); <------ or "screen" won't show

Same happens on "game over" screen, you don't see the "GAME OVER" text X-)

Fixed (hope so), will upload ASAP to osdepot.

Go to top


Re: wb2filer v0.5
Just can't stay away
Just can't stay away


@kas1e

Maybe unselecting icons will work.
I mean:
1)User select some volumes with shift and clicks on one of them.
2)Using WBCTRLA_GetSelectedIconList open all Filer "instances"
3)Deselect all icons using ChangeWorkbenchSelection(NULL, &hook, TAG_END);

...
struct Hook hook;


BOOL UnSelectIcon(struct Hook *hookAPTR reservedstruct IconSelectMsg *ism)
{
    
// If the name matches, select it. Otherwise, leave its
    // select state alone.
    
Printf("UnSelectIcon(): '%s'\n",ism->ism_Name);
    return (
ISMACTION_Unselect);

    
//return (ISMACTION_Ignore);
}
...
void showSelectedIcons(void)
{
    
struct List *selList NULL;
    
struct Node *NULL;

    
WorkbenchControl(NULLWBCTRLA_GetSelectedIconList,&selListTAG_DONE);

    if(
selList == NULL) return; 

    
Printf("getSelIcons(): 0x%08lx\n",selList);

    
// Set up the hook data structure.
    
hook.h_Entry = (HOOKFUNC)UnSelectIcon;

    
GetHead(selList);
    for(; 
n!=NULLn=GetSucc(n)) {
        
STRPTR fileptr PathPart(n->ln_Name);
        
Printf("[%ld]'%s'\n",*(fileptr)=='\0'TRUE:FALSE,n->ln_Name);

//ChangeWorkbenchSelection(NULL, &hook, WBSELA_GetFullName,TRUE, TAG_END);
ChangeWorkbenchSelection(NULL, &hookTAG_END);
    }
    
WorkbenchControl(NULLWBCTRLA_FreeSelectedIconList,selListTAG_DONE);
}



but don't know if it will work.

Go to top


Re: wb2filer v0.5
Just can't stay away
Just can't stay away


@kas1e

Doesn't look trivial thing, 'cos WB "does" an OpenWin() call for every icon (on multiple icons start), so seems not easy to find out a solultion.

EDIT: you miss a "free(ready_string);" just after SystemTags()


Edited by jabirulo on 2023/12/1 17:36:50
Go to top


Re: wb2filer v0.5
Just can't stay away
Just can't stay away


@kas1e

Depends where dou you added such new function.

If it's "inside" the PACTHED_OpenWin() then it will "loop" for every window opened.

;/*
gcc getSelIcons.c -o getSelIcons -Wall -D__USE_INLINE__ -gstabs -lauto
quit
*/

#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/wb.h>

void showSelectedIcons(void)
{
    
struct List *selList NULL;
    
struct Node *NULL;

    
WorkbenchControl(NULLWBCTRLA_GetSelectedIconList,&selListTAG_DONE);

    if(
selList == NULL) return; 

    
Printf("getSelIcons(): 0x%08lx\n",selList);

    
GetHead(selList);
    for(; 
n!=NULLn=GetSucc(n)) {
        
STRPTR fileptr PathPart(n->ln_Name);
        
Printf("[%ld]'%s'\n",*(fileptr)=='\0'TRUE:FALSE,n->ln_Name);
    }
    
WorkbenchControl(NULLWBCTRLA_FreeSelectedIconList,selListTAG_DONE);
}


int main(void)
{
    
showSelectedIcons();

    return(
RETURN_OK);
}

Go to top


Re: wb2filer v0.5
Just can't stay away
Just can't stay away


@kas1e

You can check the ones that are only volumes/devices (no drawers in path) and open Filer.
PathPart() can be handy IMO.
...
EXAMPLE
PathPart("xxx:yyy/zzz/file") would return a pointer to the last '/'
PathPart("xxx:dir") would return a pointer to the 'd').
PathPart("xxx:dir/") would return a pointer to the '/'.
PathPart("xxx:") would return a pointer to the nul terminator.
PathPart("nopath") would return a pointer to the letter 'n'.
....

...
STRPTR fileptr PathPart(n->ln_Name);
Printf("[%ld]'%s'\n",*(fileptr)=='\0'TRUE:FALSE,n->ln_Name);
...


and I get something like this:
#getSelIcons
getSelIcons(): 0x56110B30
[0]'Devel:sdkbrowser'
[0]'Devel:PortableE'
[0]'Devel:tIDE_0.1'
[1]'RAM Disk:'
[1]'SDH6:'
[1]'PRUEBAS:'
#

Go to top


Re: wb2filer v0.4
Just can't stay away
Just can't stay away


@kas1e

maybe
WorkbenchControl(NULL, WBCTRLA_GetSelectedIconList,&selList, TAG_DONE);

does what you want (sent via email a tiny example).

Go to top


Re: IBrowse 3.0 released
Just can't stay away
Just can't stay away


@eliyahu

what vesion libs do you have?
Mines:
#version LIBS:amisslmaster.library file full
amisslmaster.library 5.12 (25-10-2023)
os4 version

#version LIBS:AmiSSL/#? file full
LIBS:AmiSSL/amissl_v097g.library: amissl_v097g.library 3.7 ( 2-04-2006)
OS4 version
LIBS:AmiSSL/amissl_v111m.library: amissl_v111m.library 4.12 (11-02-2022)
os4 version
LIBS:AmiSSL/amissl_v314.library: amissl_v314.library 5.12 (25-10-2023)
os4 version


AFAIK, if you still have in IB protocols drawer https.protocol is not needed anymore, as it is merged with http.protocol

Go to top


Re: Lame intuition/reaction based questions
Just can't stay away
Just can't stay away


@kas1e

Doesn't WBOBJA_FullPath tag get what you want?

Or maybe WBOBJA_Type.

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

But if you "pass" anything else than NULL, WB/wb_lib will think it has a drawer window (pointer) and act adding gadgets, stuff.
And the blink, as other user posted, is a warn defined in Sound prefs.

Go to top


Re: Lame intuition/reaction based questions
Just can't stay away
Just can't stay away


@Daedalus

<offtopic>
BTW when do you plan another codign stream?
</offtopic>

Go to top


Re: Lame intuition/reaction based questions
Just can't stay away
Just can't stay away


@kas1e

Does DrawerGenie get such path too? Then you can look in its sources how.

You posted that DG does "SetMethod()" in these functions:
/*
SetMethod():
OpenWindowTagList()
CloseWindow()
SetWindowTitles()
AddAppWindowA()
AddAppWindow()
AddAppWindowDropZoneA()
RemoveAppWindow()
RemoveAppWindowDropZone()
LockLayerInfo()
*/
Maybe one of Add#? or Set#? is getting such stringpath, can you check what they do?

I "added" CloseWindow() on my buggy version.

Go to top


Re: Lame intuition/reaction based questions
Just can't stay away
Just can't stay away


@kas1e

Don't think there is.
Maybe insde wb_lib or whoever do such task to open wb drawers/windows uses a "own" struct with some data and one is STRPTR for fullpath.
something like

struct wbdata_t {
APTR window;
struct Gadgets *gads;
...
STRPTR win_path;
};

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

in textmode window (as your grab) the titles headers are created as CUSTOMGADGET and seems it is just after window is opened/created.

So if we can "clone" such custom gadget creating maybe we can do something.

wen I open such (type) of window on my SetMethod() debug output got:
...
createNewGadget(): 0x5bb7369c [301]
window (0x5bb72f48) with added gadget (last):
Gad_#01 = 0x5bb72d5c
Gad_#02 = 0x5bb72de4
Gad_#03 = 0x5bb732bc
Gad_#04 = 0x5bb73344
Gad_#05 = 0x5bb733cc
Gad_#06 = 0x5fe5ec0e
Gad_#07 = 0x5fe5ec3a
Gad_#08 = 0x5fe5ec66
Gad_#09 = 0x5fe5ec92
Gad_#10 = 0x5fe5ecbe
Gad_#11 = 0x5fe5ecea
Gad_#12 = 0x5bb73454
Gad_#13 = 0x5bb7369c

but theres a 14th gadget the CUSTOMGADGET with the title heads. (Using Ranger I "see" such gadget).

Go to top


Re: DrawerGenie for AOS4?
Just can't stay away
Just can't stay away


@kas1e

Maybe 'cos it's easy to set:
GA_Left, _myWin->BorderLeft + 2 + (idx * 24), // as we add IDX gadgets
GA_Top, _myWin->BorderTop + 1,

rather that doing "complex" calculations.

Go to top



TopTop
« 1 2 (3) 4 5 6 ... 51 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project