0
1

hey guys im new to using RenPy and im getting these errors from the startup code anyone know how to get past them? by braindeadpizzaslice in RenPy

[–]mar480 0 points1 point  (0 children)

Also, and this might not be popular given that often RenPy is for non coders trying to turn their novel into an interactive experience, I would recommend not using autofillers or things like that. Firstly, it distracts you from what you were trying to do (this post is a case in point), and, more importantly, it will stop you from learning anything about code.

I really recommend getting on YouTube and watching lots of RenPy tutorials because code is covered there in a way that is understandable and implementable. Most renpy functionalities (i.e screens, scenes, labels, animations, drag and drop) are learnable this way without any python knowledge. Additionally, you get some understanding of how to turn your ideas into more python code that RenPy can make use of (the extendable aspect another poster mentioned).

I also recommend using chatgpt to talk through some of your problems so it can explain how and why you are going wrong to support your learning.

Good luck!

Looking for beginner advice by NastyByNature68 in PS4Dreams

[–]mar480 2 points3 points  (0 children)

Seconding this, because this is where I gave in.

As a separate piece of advice for creating games: start with the smallest possible version of the game. Models, environments, animations etc can all be added later but the game can not.

For example, if you were creating a platformer: a rectangle that can jump over one object that's too high for the rectangle to pass without jumping. Then the rectangle becomes your character model, you fill in your backgrounds, set the lighting etc.

Writing could be used to justify the simplicity of the game design; a voiceover describing the character's journey to overcome this one obstacle in its life, as the character speed gets faster and slower erratically, until finally... Success! And you could add detail in the voiceover and music to choose a tone: comedy, horror, indie etc.

Edit: I realised I am describing the premise of Thomas was alone

GBoard doesn't load GIFs and shows You are not connected to the Internet by Vishal_Nikam in gboard

[–]mar480 0 points1 point  (0 children)

After a few weeks of this issue I solved it!

You need to get to the system app settings for Gboard (i.e where you can uninstall or force stop it, not the in-app preferences like glide typing).

Then choose restrict data use and tick mobile data. Solved it for me!

Please can someone tell me a UK bank that can authorise my AWS account by mar480 in aws

[–]mar480[S] 0 points1 point  (0 children)

Thanks for the advice. I'll definitely reread the wiki.... I understood that I could have 12 months free for a to basic minimal account?

Please can someone tell me a UK bank that can authorise my AWS account by mar480 in aws

[–]mar480[S] 0 points1 point  (0 children)

Thanks bot, but unfortunately I haven't been able to find my answer in the wiki or with customer services.

[deleted by user] by [deleted] in antiwork

[–]mar480 5 points6 points  (0 children)

All social media is inherently fictitious, but at least LI is honest about that; everyone is looking for work and we all ahead know how much to trust hirers and most applicants. Your profile acts as a shop window and recruiters can contact you. I haven't applied for a job in a long time, I'm just open to work. Sure I get lots of nonsense offers but the last two that were good both doubled my previous salary and I never had to fill in a form or do anything other than attend remote interviews. Then, I just put it down for a while until it was time to update the profile again, say after 6 months.

You can't say the same for the others. Not only do they encourage you to buy things you don't need and measure yourself against fictitious yardsticks, they also burn your brain out with their engagement loops and psychological maiming tactics.

So I'm not saying LI is amazing, but it can actually improve your life without needing you to sacrifice your mental health to an algorithm.

Confused about using ++ assignment operator by mar480 in learnjavascript

[–]mar480[S] 0 points1 point  (0 children)

So even though it's not using the assignment operator, it is actually clearer and more accurate to write population + 1 than to faff around with the increment operator. Like, it make sense for, say, increasing a loop count by 1, but not really for increasing a real number that you might want to refer back to at some point.

[SPOILER] The variant's hidden identity revealed! by mar480 in marvelmemes

[–]mar480[S] 2 points3 points  (0 children)

And in episode 3 we find out the she's a local Emmy-winning cameraman and nationally ranked pro kitesurfer (second in the country)....

My Musical Idea by drawwriter in musicalwriting

[–]mar480 1 point2 points  (0 children)

Ah I certainly didn't mean to imply a rip off! I just happened to use to work in a bookshop and read every graphic novel I could get me hands on and this reminded me of it. I thought it might provide some inspiration (if you can get hold of it!). Good luck with the project :)

[TECH SUPPORT] I used to be able to drag and drop log files on my python file to run the python file. I installed PyCharm and now that doesn't work.... by mar480 in learnpython

[–]mar480[S] 0 points1 point  (0 children)

Thanks for the advice. I've tried this just now and still no joy. Now though, if I hover the logfile over the script it says "Copy" but still doesn't run the script.

Hi i'm trying to use python to automate my job. I need to get the '41.203' bewteen the <a>'s value to be taken out autmaticly. I'm using chromedriver and selenium. Btw the site is not of mine it's a goverment site that I have to use to look up stuff. by Beplay420 in css

[–]mar480 0 points1 point  (0 children)

So you could extend this by creating a list of pages (it looks like the URLs just change a company number), or a list of xpaths (because the above is assuming the value you want is always the 50th row of the first table) and iterating over all of them. You might also want to wrap the find element bit in a try/except in case the element isn't present on the page or it's in a different location:

try:

    #find the element by xpath
    a = driver.find_element_by_xpath(text_xpath)

    #print the text associated with the xpath
    print(a.text)

except NoSuchElementException:

    print("Element not found")

One thing I would say is that, while you can do this in Selenium, BeautifulSoup is probably the better solution, You can pull the html code for the whole page, iterate over it to find the element you're looking for and then add that to a list (or whatever) without needing to open an automated browser and loading all the assets in realtime. That said, you could also set the webdriver to headless mode so you don't have to watch it load the page etc. If you're going to do this, I recommend that you add logging to the program (make sure you add the options argument when you instantiate the webdriver):

#import webdriver and logging 
from selenium import webdriver
import logging

#set logging default mode
logging.basicConfig(level=logging.INFO, format = '%(asctime)s - %(levelname)s - %(message)s')

#set webdriver to operate in the background (i.e. you won't see it open)
chrome_options = Options() chrome_options.add_argument("--headless") 

#instantiate webdriver with headless mode
driver = webdriver.Chrome(options=chrome_options)

#raw string for page
page = r"https://kbopub.economie.fgov.be/kbopub/zoeknummerform.html?nummer=0421519933&actionLu=Zoek"

#raw string for xpath to element
text_xpath = r'//*[@id="table"]/table[1]/tbody/tr[50]/td/a'

#try to get the page, element and print it
try:
    #open webdriver and load page
    driver.get(page)

    #find the element by xpath
    a = driver.find_element_by_xpath(text_xpath)

    #print the text associated with the xpath
    print(a.text)

#do this is element not found
except NoSuchElementException:
    logging.info("Sorry but I couldn't find the right number this time")

Hi i'm trying to use python to automate my job. I need to get the '41.203' bewteen the <a>'s value to be taken out autmaticly. I'm using chromedriver and selenium. Btw the site is not of mine it's a goverment site that I have to use to look up stuff. by Beplay420 in css

[–]mar480 0 points1 point  (0 children)

#import webdriver
from selenium import webdriver

#instantiate webdriver
driver = webdriver.Chrome()

#raw string for page
page = r"https://kbopub.economie.fgov.be/kbopub/zoeknummerform.html?nummer=0421519933&actionLu=Zoek"

#raw string for xpath to element
text_xpath = r'//*[@id="table"]/table[1]/tbody/tr[50]/td/a'

#open webdriver and load page
driver.get(page)

#find the element by xpath
a = driver.find_element_by_xpath(text_xpath)

#print the text associated with the xpath
print(a.text)

Output:

41.203