Jump to content

WesleyC

Member
  • Posts

    14
  • Joined

  • Last visited

Awards

This user doesn't have any awards

WesleyC's Achievements

  1. That would probably work. For me, it made it easier to understand using the while loop with inequalities rather than the for loop with range. The last comment I made has code that worked for me, thank you for the suggestion though!
  2. #!/bin/env python3 from zipfile import ZipFile num = 10000 while num > 0: num -= 1 newname = ("zyp" + str(num) + ".zip") with ZipFile (newname, 'r') as zip: zip.printdir() print('extracting all the files now...') zip.extractall() print('done') This worked! Case closed. Thanks
  3. Update again....Its not saving the num-1 #!/bin/env python3 from zipfile import ZipFile num = 9999 newname = ("zyp" + str(num-1) + ".zip") while num > 0: with ZipFile (newname, 'r') as zip: zip.printdir() print('extracting all the files now...') zip.extractall() print('done') num -= 1
  4. #!/bin/env python3 from zipfile import ZipFile str(9999) file_name= 'zyp' + str() + '.zip' while str() > 0: with ZipFile (file_name, 'r') as zip: zip.printdir() print('extracting all the files now...') zip.extractall() print('done') str() -= 1 I did this and got the error saying "can't assign to function call" referring to str() -= 1
  5. I've been working on a capture the flag and one of the problems is called Zipfinity. The CTF works in a VM on ubuntu linux. Here is the info it gives you-- "Because I like really small files, I zipped the flag 10,000 times! Unless you want to spend hours clicking stuff, you better make a program that does it for you! Personally, I recommend python and the zipfile module. This will likely crash your VM if you aren't careful" I'm very new to programming so forgive me if I have major flaws, but here is the code I wrote. #!/bin/env python3 from zipfile import ZipFile file_name= zyp + int + .zip int = 9999 while int > 0: with ZipFile (file_name, 'r') as zip: zip.printdir() print('extracting all the files now...') zip.extractall() print('done') int -= 1 The problem is in the line that starts file_name=. Terminal tells me that there is invalid syntax and points to the .zip The original file name is zyp9999.zip and when extracted turns into zyp9998.zip so my idea was to create some sort of format where only the number changed. I wasn't sure what to search google for either to help me. I tried learning about writing over files but I didn't understand. So the file_name = zyp + int + .zip was kinda just a shot in the dark that didn't work. I attached the zip if it might help anyone. zyp9999.zip
  6. Yeah. The windows game bar was recording at 71 fps rather than targeting 60. So I wonder if obs was trying to record at 60 but constantly dipping. I will have to test later but I'm content to have smooth video using the windows game bar for now. I just wish I could record the audio track separate but that's ok for now xD.
  7. @Jurrunio and @porina I thought y'all might like to hear this.. Originally during my tests I turned game bar off so it wouldn't interfere with my recordings. After several hours of testing I finally decided I would just try to use game bar to record my videos instead and it works without any problems....so I don't understand. Game bar works but obs and shadowplay don't? I would upload the file but it is too big. Any idea on why this happened?
  8. @Jurrunio The settings are not working. I have tried many different variations of them testing one variable at a time. @porina The idea to change the fps did not work. I'm not really sure where to go from here. I guess I can still record, but I will have to put up with this choppiness. Is it glaringly obvious? To me it is. My console video doesn't even look that bad.
  9. I would like to thank everyone for their help and replies! @kirashi Thank you! @Jurrunio Thank you for your response! I had obs downloaded but was disappointed when I also found that obs produced some of the same results after I played with the settings for several hours. I uninstalled it out of frustration. Can you recommend what settings to use in obs. I’m not sure what a lot of the settings do. @porina Thank you for your response! I originally thought that the the FPS difference was the reason that 60 looked bad to my eyes- because I had been on 144fps and 144hz refresh rate. I watched some other 1080p csgo and mine always looked worse so I ruled that out. I like Ike your idea about changing the FPS to a multiple of the capture rate. I never thought of this being a potential issue! I will try it and let you know! If not, I’m hoping that jurrunio will help me out with some OBS settings. Feel free to respond with your thoughts on OBS settings if you want!
  10. I have been trying to hammer down my recording settings for recording games but I can't seem to figure anything out to fix what appears to be choppiness in videos when using shadowplay. I have tried several different bitrate options and I have disabled windows game bar and any extra overlays I have. Here is an example of what I am dealing with. I was recording to a ssd that houses my OS but it also occurs if I record to my hard drive. None of the choppiness was there while actually playing. I was playing at 1440p 144 fps while I recorded at 1080p 60fps 50k bitrate (also happened on lower bitrates) Specs- 1070ti ryzen 7 2700 16 gig 3000 ram
  11. Thank you @tmurlis I will have to try that! I am glad to know more about how it works. At first I was really worried about those two pins. Thank you @AbydosOne for clearing it up!
  12. oof...every time I try to uninstall a driver, windows or something (not really sure what) installs an older version... lol
  13. What is flushing drivers? Just go to control panel and uninstall then reinstall? Sorry, I'm new to this sort of thing
  14. First time builder and first build Specs: Ryzen 7 2700 stock cooler evga gtx 1070ti msi x370 gaming pro carbon 240 kingston ssd 2tb seagate hdd windows 10 home 64bit 750 super nova 80+gold phanteks p350x two extra fans as intake and stock as exhaust CPU idles from 40-50 it goes up then back down over and over according to msi afterburner. I think i messed up applying the cooler. it had thermal paste preapplied and the screws were being a pain attaching to the back plate so it slid it around a little and it came back up a lot...I think i just need to buy some new thermal paste and retry applying it. The more important (to me at the moment anyway) issue is GPU will spike to 100% while watching a you tube video and the screen will go black then turn back on. Not only you tube. It can happen while browsing the web like Tom's hardware page. Or even playing solitaire. Sometimes even the audio stutters. Like it gets stuck on a word and its keeps trying to say it for half a second to 1 second. Video in attachments demonstrates screen turning off. http://linustechtips.com/main/applications/core/interface/file/attachment.php?id=415071 Already tried removing graphics card and placing back in. It looks like it might be damaged maybe? (look at attachments two spots where small gold pins look like they are cut short) I reinstalled the latest nvidia drivers two times. I made sure the plugs were in on both the pc and monitor using display port I tried to keep this concise Thanks In Advance, WesleyC
×