Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
144 user(s) are online (119 user(s) are browsing Forums)

Members: 0
Guests: 144

more...

Headlines

Forum Index


Board index » All Posts (Petrol)




Re: Looping in DOS batch scripts
Just popping in
Just popping in


Hi,

ForEach command would fit what you want to do maybe?

https://wiki.amigaos.net/wiki/AmigaOS_ ... Command_Reference#FOREACH

Go to top


Re: Odyssey and Bookmarks
Just popping in
Just popping in


Check also in your settings. In Interface you have the abilities to add favicon for your speed links.

Regards,
Petrol.

Go to top


Re: Evo Theme
Just popping in
Just popping in


Hi,

Requester's pictures are in a drawer called "Requester" in SYS:Prefs/Presets.
Maybe you moved it or deleted it by mistake?

@imagodespira
Nice Theme!

Regards,
Petrol.

Go to top


Re: Enhancer Software v2.0 Released
Just popping in
Just popping in


@Spectre660

Quote:
One of the possible scenarios would be another 3rd party datatype triggering the issues


I agree with you.
I have to remove/update some datatypes from my system too after the installation. drawing.datatype (SVG/DR2D) was one of them, but it has been updated since, see os4depot.
photocd.datatype is not compatible with enhancer 2.0 tools like multiviewer.

Regards,
Petrol.

Go to top


Re: Enhancer Software v2.0 Released
Just popping in
Just popping in


In the log message it asks:

Quote:
Did you install PCIGraphics.kmod?


It should be PCIGraphics.card, right?

Regards,

Go to top


Re: Radeon R9 280X not working in "Power" Prefs with Enhancer 2
Just popping in
Just popping in


Hi,

Same here with a sapphire RadeonHD R9 280X tri-X.

Petrol.

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


Thank you for the kind words.

I also noticed during testing that skaitv script didn't have -q quality arguments, that make my script to fail, while different qualities are listed in the vwq script.

So I commented out the lines with the requester and added another condition before launching the script without the -q argument:

elif website == 'skaitv':
    
vqualitylist ' | '.join(str(n) for n in vqw.skaiVQW)
#    response = asl.MessageBox("Quality choice", "Please select a video quality: ", vqualitylist)
#    vquality = str(vqw.skaiVQW[response-1])

...

if 
website == 'other':
    
os.system('APPDIR:Mplayer -cache 8092 ' url)
elif website == 'skaitv':
    
os.system('C:Python ' AIOSpath '/' website '.py ' '-shh -u ' url)
else:
    
os.system('C:Python ' AIOSpath '/' website '.py ' '-shh -u ' url ' -q ' vquality)


I also tried the skaitv script alone with a video url and with the -l only, but it gave me a url open error.

<urlopen error (1, 'error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure')>

Regards,

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


Hi,

I looked into writing scripts in python, to rewrite the little arexx script previously made, in python format, and add some enhancements also.
If you want to give it a try, you can download it >here<.
It contains 2 py files (on is used for url recognition), and a drawer with small pngs pictures to display in the notification server.
Extract its content and copy the 2 scripts and the "icones" drawer in AIOStreams root one.
Set the context menu of your browser to call the script as:
Python {AIOStreams path}/AIOS_Browser_extension.py %l

Regards,
Petrol.


Edited by Petrol on 2023/12/27 22:32:47
Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


@white

Your previous screenshots show that the url parsed via the Rexx command start by https://m.youtube, but in your script you only send to YouTube.py the url that start by https://www.youtube and https://youtu.be (url test part).
Add one with https://m.youtube, with substr(url,1,17).

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


What’s the exact YouTube url you tested?
I’ll tried it on mine.

Édit: your script don’t work because you are using a mobile YouTube url.
Add it to the url test first where it starts by:
WHEN (substr(url,

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


My fault sorry,

It lacks the C:Python in the command I wrote before:

WHEN website = "Youtube" THEN address command 'C:Python Work:aiostreams/youtube.py -shh -u ' url ' -q 22'

It should work now.

Regards,
Petrol

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


Is there a space between url and ‘ -q 22’ in your script?

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


Could you take a screenshot of your Rexx script and post it here?

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


Hi White,

Did you type manually or copy and paste from my previous post.
Take a close look, especially spaces!

Yours:
WHEN website "Youtube" THEN address command 'Work: aiostreams / youtube.py -shh -u' url '-q 22'

Mine:
WHEN website "Youtube" THEN address command 'C:Python Work:aiostreams/youtube.py -shh -u ' url ' -q 22'

Regards,


Edited by Petrol on 2021/2/20 19:55:24
Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


@white

Test this one:

WHEN website "Youtube" THEN address command 'C:Python Work:aiostreams/youtube.py -shh -u ' url ' -q 22'


Don't put extra space in file path, only for options. You can adjust quality option (-q option) by changing the number (22 means 720p).

Found this on the net

171         webm      audio only  DASH audio  115k audio@128k (44100Hz), 2.59MiB (worst)
140         m4a       audio only  DASH audio  129k audio@128k (44100Hz), 3.02MiB
141         m4a       audio only  DASH audio  255k 
audio@256k (44100Hz), 5.99MiB
160         mp4       256x144     DASH video  111k 
12fpsvideo only2.56MiB
247         webm      1280x720    DASH video 1807k 
1fpsvideo only23.48MiB
136         mp4       1280x720    DASH video 2236k 
24fpsvideo only27.73MiB
248         webm      1920x1080   DASH video 3993k 
1fpsvideo only42.04MiB
137         mp4       1920x1080   DASH video 4141k 
24fpsvideo only60.28MiB
43          webm      640x360
18          mp4       640x360
22          mp4       1280x720    
(best)


Regards,
Petrol

Édit: command corrected


Edited by Petrol on 2021/2/20 20:05:37
Go to top


Re: Font dowloader does not work in Odessey
Just popping in
Just popping in


Hi,

You can use Curl.

Replace Datas/Wget and it's options by Curl -L and the -O by -o after the <F>.exe

Regards,


Edited by Petrol on 2021/2/17 8:20:53
Go to top


Re: Contextual Menus for translate.google.com
Just popping in
Just popping in


Hi,

To open the translated page in a new tab, I'm using OWBLauncher2 from OS4Depot..

The menu entry look like this on my setup for french translation :
Appdir:OdysseyLauncher "https://translate.google.fr/translate?hl=fr&sl=auto&tl=fr&u=%u"


Regards,
Petrol.

Go to top


Re: What is the best monitor for OS4?
Just popping in
Just popping in


Hi,

Sometime ago, I experienced freezes of my system too, an A1X1000, without any trace on the serial log. The thing I saw was that it was not froze permanentely and every minute, it unfroze itself for 1 or 2 seconds.
The culprit was the sata cable of my HDD that I replaced since, and I didn't get any "undetermined" freeze of the system anymore.

Regards,
Petrol.

Go to top


Re: AmiUpdate: How to remove an application?
Just popping in
Just popping in


Hi,

I don't know if it's similar to other databases, but don't you have a "Delete Entry" button near the "Save change" at the bottom when you select your project?
Regards
Petrol,

Go to top


Re: The OpenGL ES 2.0 thread
Just popping in
Just popping in


Just tested all of them, and yeah they're not working on Safari.
Same error in most cases, sometimes it also complains about unsupported operators:

Quote:
'>>' : bit-wise operator supported in GLSL ES 3.00 and above only
'&' : bit-wise operator supported in GLSL ES 3.00 and above only


Flying Centipede shader (https://www.shadertoy.com/view/ttlGR4) complains about lines 217 to 239:

Quote:
// find the two closest points
217
vec3[2] closestParmDistIndex = vec3[2](vec3(0, 9e9, 0), vec3(0, 9e9, 0));
'first-class array' : not supported
'[]' : array constructor supported in GLSL ES 3.00 and above only
'=' : array / non-array mismatch
'=' : cannot convert from 'const array[2] of 3-component vector of float' to 'highp 3-component vector of float'
218
float currentParm = 0.0;
219
for (int i = Z ; i < SEGMENTS ; i++) {
'min' : no matching overloaded function found
'=' : cannot convert from 'const mediump float' to 'highp int'
220
vec3 current = path(currentParm);
221
vec3 currentD = p - current;
222
float currentDist = dot(currentD, currentD);
223
if (currentDist < closestParmDistIndex[0].y) {
'y' : field selection requires structure or vector on left hand side
224
closestParmDistIndex[1] = closestParmDistIndex[0];
225
closestParmDistIndex[0] = vec3(currentParm,currentDist,float(i));
'=' : dimension mismatch
'assign' : cannot convert from 'highp 3-component vector of float' to 'highp float'
226
} else if (currentDist < closestParmDistIndex[1].y) {
'y' : field selection requires structure or vector on left hand side
227
closestParmDistIndex[1] = vec3(currentParm,currentDist,float(i));
'=' : dimension mismatch
'assign' : cannot convert from 'highp 3-component vector of float' to 'highp float'
228
}
229
currentParm -= 0.17 / length(pathd(currentParm)) * paths(currentParm);
230
}
231

232
float dOrg = 8.0;
233
float dShe = 8.0;
234

235
albedo = COLOR_SHELL;
236

237
for (int i = Z; i < 2 ; i++) {
'min' : no matching overloaded function found
'=' : cannot convert from 'const mediump float' to 'highp int'
238
float centerParm = closestParmDistIndex[i].x;
'x' : field selection requires structure or vector on left hand side
239
int centerIndex = int(closestParmDistIndex[i].z);
'z' : field selection requires structure or vector on left hand side


Happy jumping one (https://www.shadertoy.com/view/3lsSzf) complains about mat2x2 also:

Quote:
'mat2x2' : no matching overloaded function found


One of them, Shuto Highway 83(https://www.shadertoy.com/view/XdyyDV), has ONLY this error on line 134:

Quote:
uint k = 1103515245U; // GLIB C
'uint' : undeclared identifier
'k' : syntax error


ForgottenLand (https://www.shadertoy.com/view/4tdcWn) and others are giving this error several times:

Quote:
303 for(int i=0; i < min(0,iFrame)+6; i++)
'min' : no matching overloaded function found
'+' : wrong operand types - no operation '+' exists that takes a left-hand operand of type 'const mediump float' and a right operand of type 'const int' (or there is no acceptable conversion)
'<' : wrong operand types - no operation '<' exists that takes a left-hand operand of type 'highp int' and a right operand of type 'const mediump float' (or there is no acceptable conversion)


Robotic Arm Hunting Ligths (https://www.shadertoy.com/view/tlSSDV) complains at several lines:

Quote:
39 vec2[2] activeSpheres;
'first-class array' : not supported
40 vec2[3] joints;
'first-class array' : not supported
...
1
activeSpheres[0] = activeSphereGrid(time);
'=' : dimension mismatch
'assign' : cannot convert from 'highp 2-component vector of float' to 'highp float'
242
activeSpheres[1] = activeSphereGrid(time+1.);
'=' : dimension mismatch
'assign' : cannot convert from 'highp 2-component vector of float' to 'highp float'
243

244
vec3 ta0 = sphereCenter(activeSpheres[0]);
'sphereCenter' : no matching overloaded function found
'=' : dimension mismatch
'=' : cannot convert from 'const mediump float' to 'highp 3-component vector of float'
245
vec3 ta1 = sphereCenter(activeSpheres[1]);
'sphereCenter' : no matching overloaded function found
'=' : dimension mismatch
'=' : cannot convert from 'const mediump float' to 'highp 3-component vector of float'


Day 187 (https://www.shadertoy.com/view/ttfyDj) at several lines too:

Quote:

float env = smease(t/scenes[1],2.);
'scenes' : left of '[' is not of type array, matrix, or vector


Regards,
Petrol


Edited by Petrol on 2020/10/25 21:42:06
Go to top



TopTop
« 1 2 3 (4) 5 6 7 8 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project